feat: Add facilty for custom throttle warning position (#1395)
* replace magic number for throttle idle with correct define * settings for custom throttle warning position * settings fixed not to break byte-aligment of bit-fields * evaluate custom throttle warning position * add requested throttle value to warning text * comment about field alignment in ModelData struct * Menu for editing custom throttle warning for 128x64 radios Tested on RM TX12 * Improoved menu display * move displayed strings to translation * translation template added for each language * support for 212x64 B&W radios * menu for colorlcd not tested * corrected translation entry for TW * corrected handling of padding bits in ModelData structure * Companion support for custom throttle warning position * Rebase catchup Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
@@ -117,29 +117,29 @@ static inline void check_struct()
|
||||
|
||||
#if defined(PCBXLITES)
|
||||
CHKSIZE(RadioData, 860);
|
||||
CHKSIZE(ModelData, 6160);
|
||||
CHKSIZE(ModelData, 6162);
|
||||
#elif defined(PCBXLITE)
|
||||
CHKSIZE(RadioData, 858);
|
||||
CHKSIZE(ModelData, 6160);
|
||||
CHKSIZE(ModelData, 6162);
|
||||
#elif defined(RADIO_TPRO)
|
||||
CHKSIZE(RadioData, 841);
|
||||
CHKSIZE(ModelData, 6185);
|
||||
CHKSIZE(ModelData, 6187);
|
||||
#elif defined(PCBX7)
|
||||
CHKSIZE(RadioData, 864);
|
||||
CHKSIZE(ModelData, 6160);
|
||||
CHKSIZE(ModelData, 6162);
|
||||
#elif defined(PCBX9E)
|
||||
CHKSIZE(RadioData, 954);
|
||||
CHKSIZE(ModelData, 6612);
|
||||
CHKSIZE(ModelData, 6614);
|
||||
#elif defined(PCBX9D) || defined(PCBX9DP)
|
||||
CHKSIZE(RadioData, 896);
|
||||
CHKSIZE(ModelData, 6604);
|
||||
CHKSIZE(ModelData, 6606);
|
||||
#elif defined(PCBHORUS)
|
||||
#if defined(PCBX10)
|
||||
CHKSIZE(RadioData, 921);
|
||||
CHKSIZE(ModelData, 11024);
|
||||
CHKSIZE(ModelData, 11026);
|
||||
#else
|
||||
CHKSIZE(RadioData, 903);
|
||||
CHKSIZE(ModelData, 11022);
|
||||
CHKSIZE(ModelData, 11024);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user