From 92d5460b92b7a26f15ea9709c13444858009bdbd Mon Sep 17 00:00:00 2001 From: SpektrumRC Date: Thu, 22 Feb 2024 11:13:42 -0600 Subject: [PATCH] Spektrum telemetry minor fix to address false Fastboot alerts on radios with latest update (#13383) Extended description of STRU_TELE_RPM, and changed fill values from 0xFF's to 0x00 to account for new fastbootUptime variable --- src/main/telemetry/srxl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/telemetry/srxl.c b/src/main/telemetry/srxl.c index 947e39207cf..a481d3c6cb5 100644 --- a/src/main/telemetry/srxl.c +++ b/src/main/telemetry/srxl.c @@ -166,11 +166,13 @@ typedef struct INT8 dBm_A, // Average signal for A antenna in dBm INT8 dBm_B; // Average signal for B antenna in dBm. // If only 1 antenna, set B = A + UINT16 spare[2]; + UINT16 fastbootUptime; // bit 15 = fastboot flag. Bits 0-14= uptime in seconds. 0x0000 --> no data } STRU_TELE_RPM; */ #define STRU_TELE_RPM_EMPTY_FIELDS_COUNT 8 -#define STRU_TELE_RPM_EMPTY_FIELDS_VALUE 0xff +#define STRU_TELE_RPM_EMPTY_FIELDS_VALUE 0x00 #define SPEKTRUM_RPM_UNUSED 0xffff #define SPEKTRUM_TEMP_UNUSED 0x7fff