mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-12-04 03:39:41 +00:00
PPM protcols: remove warning when setting negative option values
This commit is contained in:
@@ -309,7 +309,7 @@ struct PPM_Parameters
|
|||||||
uint8_t rx_num : 4;
|
uint8_t rx_num : 4;
|
||||||
uint8_t power : 1;
|
uint8_t power : 1;
|
||||||
uint8_t autobind : 1;
|
uint8_t autobind : 1;
|
||||||
uint8_t option;
|
int8_t option;
|
||||||
uint32_t chan_order;
|
uint32_t chan_order;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -477,7 +477,7 @@ void setup()
|
|||||||
option = FORCE_HITEC_TUNING; // Use config-defined tuning value for HITEC
|
option = FORCE_HITEC_TUNING; // Use config-defined tuning value for HITEC
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
option = PPM_prot_line->option; // Use radio-defined option value
|
option = (uint8_t)PPM_prot_line->option; // Use radio-defined option value
|
||||||
|
|
||||||
if(PPM_prot_line->power) POWER_FLAG_on;
|
if(PPM_prot_line->power) POWER_FLAG_on;
|
||||||
if(PPM_prot_line->autobind)
|
if(PPM_prot_line->autobind)
|
||||||
|
|||||||
Reference in New Issue
Block a user