Improved module data output
This commit is contained in:
@@ -446,12 +446,13 @@ PACK(struct TrainerModuleData {
|
||||
PACK(struct ModuleData {
|
||||
uint8_t type:4 ENUM(ModuleType);
|
||||
// TODO some refactoring is needed, rfProtocol is only used by DSM2 and MULTI, it could be merged with subType
|
||||
int8_t rfProtocol:4;
|
||||
int8_t rfProtocol:4 SKIP;
|
||||
CUST_ATTR(subType,r_modSubtype,w_modSubtype);
|
||||
uint8_t channelsStart;
|
||||
int8_t channelsCount; // 0=8 channels
|
||||
uint8_t failsafeMode:4; // only 3 bits used
|
||||
uint8_t subType:3;
|
||||
uint8_t invertedSerial:1; // telemetry serial inverted from standard
|
||||
int8_t channelsCount CUST(r_channelsCount,w_channelsCount); // 0=8 channels
|
||||
uint8_t failsafeMode:4 ENUM(FailsafeModes); // only 3 bits used
|
||||
uint8_t subType:3 SKIP;
|
||||
uint8_t invertedSerial:1 SKIP; // telemetry serial inverted from standard
|
||||
|
||||
union {
|
||||
uint8_t raw[PXX2_MAX_RECEIVERS_PER_MODULE * PXX2_LEN_RX_NAME + 1];
|
||||
@@ -462,10 +463,10 @@ PACK(struct ModuleData {
|
||||
int8_t frameLength;
|
||||
} ppm);
|
||||
NOBACKUP(struct {
|
||||
uint8_t rfProtocolExtra:3;
|
||||
uint8_t rfProtocolExtra:3 SKIP;
|
||||
uint8_t disableTelemetry:1;
|
||||
uint8_t disableMapping:1;
|
||||
uint8_t customProto:1;
|
||||
uint8_t customProto:1 SKIP;
|
||||
uint8_t autoBindMode:1;
|
||||
uint8_t lowPowerMode:1;
|
||||
int8_t optionValue;
|
||||
|
||||
Reference in New Issue
Block a user