Change abs to fabs so it will properly compile on Raspberry Pi

This commit is contained in:
Collin Kidder
2019-06-11 20:58:54 -04:00
parent 2552debd6d
commit d75edabbfe
+2 -2
View File
@@ -123,10 +123,10 @@ void NewGraphDialog::checkSignalAgreement()
testingParams.numBits = dataLen; testingParams.numBits = dataLen;
if (testingParams.ID != msg->ID) bAgree = false; if (testingParams.ID != msg->ID) bAgree = false;
if (abs(testingParams.bias - sig->bias) > 0.01) bAgree = false; if (fabs(testingParams.bias - sig->bias) > 0.01) bAgree = false;
if (testingParams.isSigned != sigSigned) bAgree = false; if (testingParams.isSigned != sigSigned) bAgree = false;
if (testingParams.intelFormat != sig->intelByteOrder) bAgree = false; if (testingParams.intelFormat != sig->intelByteOrder) bAgree = false;
if (abs(testingParams.scale - sig->factor) > 0.01) bAgree = false; if (fabs(testingParams.scale - sig->factor) > 0.01) bAgree = false;
if (testingParams.startBit != sig->startBit) bAgree = false; if (testingParams.startBit != sig->startBit) bAgree = false;
if (testingParams.numBits != sig->signalSize) bAgree = false; if (testingParams.numBits != sig->signalSize) bAgree = false;
} }