Merge pull request #632 from MichaelDvP/dev

fix #631, negative multiplicator
This commit is contained in:
Proddy
2022-09-22 19:03:04 +05:30
committed by GitHub

View File

@@ -458,13 +458,13 @@ float Helpers::transformNumFloat(float value, const int8_t numeric_operator, con
val = ((value / 100) * 100 + 0.5);
break;
case DeviceValueNumOp::DV_NUMOP_MUL5:
val = value * -100 * 5;
val = value * 100 * 5;
break;
case DeviceValueNumOp::DV_NUMOP_MUL10:
val = value * -100 * 10;
val = value * 100 * 10;
break;
case DeviceValueNumOp::DV_NUMOP_MUL15:
val = value * -100 * 15;
val = value * 100 * 15;
break;
default:
val = (value * 100 + 0.5); // no ops