PPM protcols: remove warning when setting negative option values

This commit is contained in:
pascallanger 2019-10-28 23:29:34 +01:00
parent 61970b028e
commit cde185901a
2 changed files with 2 additions and 2 deletions

View File

@ -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;
};

View File

@ -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)