diff --git a/protocolfield.cpp b/protocolfield.cpp index 3476531..78bacc8 100644 --- a/protocolfield.cpp +++ b/protocolfield.cpp @@ -3490,8 +3490,9 @@ bool ProtocolField::isFloatScaling(void) const { if(inMemoryType.isFloat) { - if(scaler != 1.0) - return true; + // If the user input a scaler string, then they want float scaling + if(!scalerString.isEmpty() || (scaler != 1.0)) + return true; // The min value only matters if we are signed if(!encodedType.isSigned && (encodedMin != 0.0)) diff --git a/protocolparser.cpp b/protocolparser.cpp index 99d3046..9e26a4d 100644 --- a/protocolparser.cpp +++ b/protocolparser.cpp @@ -17,7 +17,7 @@ #include // The version of the protocol generator is set here -const QString ProtocolParser::genVersion = "2.8.b"; +const QString ProtocolParser::genVersion = "2.8.c"; /*! * \brief ProtocolParser::ProtocolParser