From 99c413dbac1918c0269e5c3a994c7216533d80ba Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Mon, 1 Apr 2019 14:13:10 +0200 Subject: [PATCH] Added PhysID / module / RX_UID to TelemetrySensor --- radio/src/datastructs.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/radio/src/datastructs.h b/radio/src/datastructs.h index 4b81dc8bf..ddaa8faca 100644 --- a/radio/src/datastructs.h +++ b/radio/src/datastructs.h @@ -348,7 +348,12 @@ PACK(struct TelemetrySensor { NOBACKUP(uint16_t persistentValue); }; union { - uint8_t instance; // instance ID to allow handling multiple instances of same value type, for FrSky can be the physical ID of the sensor + PACK(struct { + uint8_t physID:5; // instance ID to allow handling multiple instances of same value type, for FrSky can be the physical ID of the sensor + uint8_t module:1; + uint8_t rx_uid:2; + }) frskyInstance; + uint8_t instance; NOBACKUP(uint8_t formula); }; char label[TELEM_LABEL_LEN]; // user defined label @@ -936,7 +941,7 @@ static inline void check_struct() CHKSIZE(ModelData, 6040); #elif defined(PCBX9E) CHKSIZE(RadioData, 960); - CHKSIZE(ModelData, 6435); + CHKSIZE(ModelData, 6535); #elif defined(PCBX9D) || defined(PCBX9DP) CHKSIZE(RadioData, 880); CHKSIZE(ModelData, 6522);