Change CPU temp calculation formula for status message.

pull/148/merge
Christopher Young 2015-12-22 15:40:56 -05:00
rodzic 4f9b57007c
commit b0b36e80a0
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -452,7 +452,7 @@ func makeSXHeartbeat() []byte {
msg[25] = byte(globalStatus.ES_messages_last_minute & 0xFF)
// CPU temperature.
v := uint16(float32(10.0)*globalStatus.CPUTemp) + 32768
v := uint16(float32(10.0) * globalStatus.CPUTemp)
msg[26] = byte((v & 0xFF00) >> 8)
msg[27] = byte(v * 0xFF)