From f865578b4226a31c5baeac1a39f9440c7b64b8c0 Mon Sep 17 00:00:00 2001 From: philmoz Date: Sat, 17 Aug 2024 19:09:03 +1000 Subject: [PATCH] fix(simulator): SourceNumberEdit not working on Windows (#5450) --- radio/src/datastructs_private.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radio/src/datastructs_private.h b/radio/src/datastructs_private.h index 3fa8a3c54..1cf0874e4 100644 --- a/radio/src/datastructs_private.h +++ b/radio/src/datastructs_private.h @@ -65,7 +65,7 @@ PACK(union SourceNumVal { struct { int16_t value:10; - bool isSource:1; + int16_t isSource:1; }; uint16_t rawValue:11; }); @@ -74,7 +74,7 @@ inline uint16_t makeSourceNumVal(int16_t val, bool isSource = false) { SourceNumVal v; v.value = val; - v.isSource= isSource; + v.isSource = isSource; return v.rawValue; }