Skip to content

Commit f638759

Browse files
authored
Fixes BLEEddystoneTLM::toString() negative temp
1 parent 1f406c6 commit f638759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/BLE/src/BLEEddystoneTLM.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ std::string BLEEddystoneTLM::toString() {
7575
out += " mV\n";
7676

7777
out += "Temperature ";
78-
snprintf(val, sizeof(val), "%.2f", ENDIAN_CHANGE_U16(m_eddystoneData.temp) / 256.0f);
78+
snprintf(val, sizeof(val), "%.2f", ((int16_t)ENDIAN_CHANGE_U16(m_eddystoneData.temp)) / 256.0f);
7979
out += val;
8080
out += " C\n";
8181

0 commit comments

Comments
 (0)