We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f43826 + 085d1f5 commit e3f61d2Copy full SHA for e3f61d2
src/SigFox.cpp
@@ -461,7 +461,7 @@ float SIGFOXClass::internalTemperature()
461
digitalWrite(chip_select_pin, HIGH);
462
delay(1);
463
464
- return (float((uint16_t)temperatureH << 8 | temperatureL) - 50.0f) / 10;
+ return ((float)((int16_t)((uint16_t)temperatureH << 8 | temperatureL)) - 50.0f) / 10;
465
}
466
467
char* SIGFOXClass::readConfig(int* len)
0 commit comments