Skip to content

Commit

Permalink
Bug fix: fields that ask for scaling, even with a scaler of 1.0, shou…
Browse files Browse the repository at this point in the history
…ld get it.
  • Loading branch information
billvaglienti committed Oct 26, 2017
1 parent ef0dcbd commit 2d08eea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions protocolfield.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion protocolparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <iostream>

// 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
Expand Down

0 comments on commit 2d08eea

Please sign in to comment.