From bb23bd507f2a46706830934c35e068ae65c7e5ca Mon Sep 17 00:00:00 2001 From: Christopher Young Date: Thu, 31 Dec 2015 23:44:47 -0500 Subject: [PATCH] Fix CPU status byte bug. Change link to spec. --- main/gen_gdl90.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/gen_gdl90.go b/main/gen_gdl90.go index 50ff54de8..a3b17bd6c 100644 --- a/main/gen_gdl90.go +++ b/main/gen_gdl90.go @@ -349,7 +349,7 @@ func makeOwnshipGeometricAltitudeReport() bool { /* "SX" Stratux GDL90 message. - http://hiltonsoftware.com/stratux/StratuxStatusMessage-V01.pdf + http://hiltonsoftware.com/stratux/ for latest version (currently using V104) */ @@ -492,7 +492,7 @@ func makeSXHeartbeat() []byte { v := uint16(float32(10.0) * globalStatus.CPUTemp) msg[26] = byte((v & 0xFF00) >> 8) - msg[27] = byte(v * 0xFF) + msg[27] = byte(v & 0xFF) // Number of ADS-B towers. num_towers := uint8(len(ADSBTowers))