From b0b36e80a0a4a3aa80035710a27eaff7cd24e46d Mon Sep 17 00:00:00 2001 From: Christopher Young Date: Tue, 22 Dec 2015 15:40:56 -0500 Subject: [PATCH] Change CPU temp calculation formula for status message. --- main/gen_gdl90.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/gen_gdl90.go b/main/gen_gdl90.go index 5dd40301..a656c165 100644 --- a/main/gen_gdl90.go +++ b/main/gen_gdl90.go @@ -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)