mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 15:58:12 +00:00
PPM protcols: remove warning when setting negative option values
This commit is contained in:
parent
61970b028e
commit
cde185901a
@ -309,7 +309,7 @@ struct PPM_Parameters
|
||||
uint8_t rx_num : 4;
|
||||
uint8_t power : 1;
|
||||
uint8_t autobind : 1;
|
||||
uint8_t option;
|
||||
int8_t option;
|
||||
uint32_t chan_order;
|
||||
};
|
||||
|
||||
|
@ -477,7 +477,7 @@ void setup()
|
||||
option = FORCE_HITEC_TUNING; // Use config-defined tuning value for HITEC
|
||||
else
|
||||
#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->autobind)
|
||||
|
Loading…
x
Reference in New Issue
Block a user