fix(radio): YAML timer handling (#3949)
* fix: YAML timer handling * chore: improve YAML set timer handling * chore: improve timer handling * feat: only offer defined timer for set and reset functions * feat: only offer defined timer for set and reset functions (bw) * chore: cosmetics
This commit is contained in:
@@ -125,12 +125,8 @@
|
||||
#define TR_SF_RESERVE "[reserve]"
|
||||
|
||||
#define TR_FSW_RESET_TELEM TR("Telm", "Telemetri")
|
||||
#define TR_FSW_RESET_TIMERS "Tid1","Tid2","Tid3"
|
||||
|
||||
#if LCD_W >= 212
|
||||
#define TR_FSW_RESET_TIMERS "Tidtag 1","Tidtag 2","Tidtag 3"
|
||||
#else
|
||||
#define TR_FSW_RESET_TIMERS "Tid1","Tid2","Tid3"
|
||||
#endif
|
||||
|
||||
#define TR_VFSWRESET TR_FSW_RESET_TIMERS,TR("Alle","Flight"),TR_FSW_RESET_TELEM
|
||||
|
||||
|
||||
@@ -121,12 +121,8 @@
|
||||
#define TR_SF_SET_SCREEN "Set Main Screen"
|
||||
|
||||
#define TR_FSW_RESET_TELEM TR("Telm","Telemetrie")
|
||||
#define TR_FSW_RESET_TIMERS "Tmr1","Tmr2","Tmr3"
|
||||
|
||||
#if LCD_W >= 212
|
||||
#define TR_FSW_RESET_TIMERS "Timer 1","Timer 2","Timer 3"
|
||||
#else
|
||||
#define TR_FSW_RESET_TIMERS "Tmr1","Tmr2","Tmr3"
|
||||
#endif
|
||||
|
||||
#define TR_VFSWRESET TR_FSW_RESET_TIMERS,"All",TR_FSW_RESET_TELEM
|
||||
|
||||
|
||||
@@ -123,12 +123,7 @@
|
||||
#define TR_SF_RESERVE "[reserve]"
|
||||
|
||||
#define TR_FSW_RESET_TELEM TR("Telm", "Telemetry")
|
||||
|
||||
#if LCD_W >= 212
|
||||
#define TR_FSW_RESET_TIMERS "Timer 1","Timer 2","Timer 3"
|
||||
#else
|
||||
#define TR_FSW_RESET_TIMERS "Tmr1","Tmr2","Tmr3"
|
||||
#endif
|
||||
#define TR_FSW_RESET_TIMERS "Tmr1","Tmr2","Tmr3"
|
||||
|
||||
#define TR_VFSWRESET TR_FSW_RESET_TIMERS,TR("All","Flight"),TR_FSW_RESET_TELEM
|
||||
|
||||
|
||||
@@ -119,12 +119,7 @@
|
||||
#define TR_SF_SET_SCREEN "Set Main Screen"
|
||||
|
||||
#define TR_FSW_RESET_TELEM TR("Telm", "Telemetría")
|
||||
|
||||
#if LCD_W >= 212
|
||||
#define TR_FSW_RESET_TIMERS "Timer 1","Timer 2","Timer 3"
|
||||
#else
|
||||
#define TR_FSW_RESET_TIMERS "Tmr1","Tmr2","Tmr3"
|
||||
#endif
|
||||
#define TR_FSW_RESET_TIMERS "Tmr1","Tmr2","Tmr3"
|
||||
|
||||
#define TR_VFSWRESET TR_FSW_RESET_TIMERS,TR("Todo","Vuelo"),TR_FSW_RESET_TELEM
|
||||
|
||||
|
||||
@@ -124,12 +124,7 @@
|
||||
#define TR_SF_SET_SCREEN "Set Main Screen"
|
||||
|
||||
#define TR_FSW_RESET_TELEM TR("Telm","Telemetry")
|
||||
|
||||
#if defined(PCBTARANIS)
|
||||
#define TR_FSW_RESET_TIMERS "Timer 1","Timer 2","Timer 3"
|
||||
#else
|
||||
#define TR_FSW_RESET_TIMERS "Tmr1","Tmr2","Tmr3"
|
||||
#endif
|
||||
#define TR_FSW_RESET_TIMERS "Tmr1","Tmr2","Tmr3"
|
||||
|
||||
#define TR_VFSWRESET TR_FSW_RESET_TIMERS,"All",TR_FSW_RESET_TELEM
|
||||
|
||||
|
||||
@@ -123,12 +123,8 @@
|
||||
#define TR_SF_SET_SCREEN "Définir Écran Princ."
|
||||
|
||||
#define TR_FSW_RESET_TELEM TR("Télem.", "Télémétrie")
|
||||
#define TR_FSW_RESET_TIMERS "Chr1","Chr2","Chr3"
|
||||
|
||||
#if LCD_W >= 212
|
||||
#define TR_FSW_RESET_TIMERS "Chrono 1","Chrono 2","Chrono 3"
|
||||
#else
|
||||
#define TR_FSW_RESET_TIMERS "Chr1","Chr2","Chr3"
|
||||
#endif
|
||||
|
||||
#define TR_VFSWRESET TR_FSW_RESET_TIMERS, "Tout", TR_FSW_RESET_TELEM
|
||||
#define TR_FUNCSOUNDS TR("Bp1","Beep1"),TR("Bp2","Beep2"),TR("Bp3","Beep3"),TR("Wrn1","Warn1"),TR("Wrn2","Warn2"),TR("Chee","Cheep"),TR("Rata","Ratata"),"Tick",TR("Sirn","Siren"),"Ring",TR("SciF","SciFi"),TR("Robt","Robot"),TR("Chrp","Chirp"),"Tada",TR("Crck","Crickt"),TR("Alrm","AlmClk")
|
||||
|
||||
@@ -176,12 +176,8 @@
|
||||
#define TR_VFSWFUNC TR_SF_SAFETY,"Trainer","Inst. Trim","Reset","Set",TR_ADJUST_GVAR,"Volume","SetFailsafe","RangeCheck","ModuleBind",TR_SOUND,TR_PLAY_TRACK,TR_PLAY_VALUE,TR_SF_RESERVE,TR_SF_PLAY_SCRIPT,TR_SF_RESERVE,TR_SF_BG_MUSIC,TR_VVARIO,TR_HAPTIC,TR_SDCLOGS,"Backlight",TR_SF_SCREENSHOT,TR_SF_RACING_MODE,TR_SF_DISABLE_TOUCH, TR_SF_SET_SCREEN TR_SF_TEST
|
||||
|
||||
#define TR_FSW_RESET_TELEM TR("Telm", "טלמטריה")
|
||||
#define TR_FSW_RESET_TIMERS "שעון 1","שעון 2","שעון 3"
|
||||
|
||||
#if LCD_W >= 212
|
||||
#define TR_FSW_RESET_TIMERS "שעון 1","שעון 2","שעון 3"
|
||||
#else
|
||||
#define TR_FSW_RESET_TIMERS "שעון 1","שעון 2","שעון 3"
|
||||
#endif
|
||||
|
||||
#define TR_VFSWRESET TR_FSW_RESET_TIMERS,TR("All","Flight"),TR_FSW_RESET_TELEM
|
||||
|
||||
|
||||
@@ -122,12 +122,8 @@
|
||||
#define TR_SF_SET_SCREEN "Setta Schermo Princ."
|
||||
|
||||
#define TR_FSW_RESET_TELEM TR("Telm", "Telemetria")
|
||||
#define TR_FSW_RESET_TIMERS "Tmr1","Tmr2","Tmr3"
|
||||
|
||||
#if LCD_W >= 212
|
||||
#define TR_FSW_RESET_TIMERS "Timer 1","Timer 2","Timer 3"
|
||||
#else
|
||||
#define TR_FSW_RESET_TIMERS "Tmr1","Tmr2","Tmr3"
|
||||
#endif
|
||||
|
||||
#define TR_VFSWRESET TR_FSW_RESET_TIMERS,TR("All","Tutto"),TR_FSW_RESET_TELEM
|
||||
|
||||
|
||||
@@ -120,12 +120,7 @@
|
||||
#define TR_SF_RESERVE "[reserve]"
|
||||
|
||||
#define TR_FSW_RESET_TELEM TR("Telm", "Telemetrie")
|
||||
|
||||
#if LCD_W >= 212
|
||||
#define TR_FSW_RESET_TIMERS "Timer 1","Timer 2","Timer 3"
|
||||
#else
|
||||
#define TR_FSW_RESET_TIMERS "Tmr1","Tmr2","Tmr3"
|
||||
#endif
|
||||
#define TR_FSW_RESET_TIMERS "Tmr1","Tmr2","Tmr3"
|
||||
|
||||
#define TR_VFSWRESET TR_FSW_RESET_TIMERS,TR("All","Vliegdata"),TR_FSW_RESET_TELEM
|
||||
|
||||
|
||||
@@ -117,13 +117,9 @@
|
||||
#define TR_SF_DISABLE_TOUCH "No Touch"
|
||||
#define TR_SF_SET_SCREEN "Set Main Screen"
|
||||
|
||||
#define TR_FSW_RESET_TELEM TR("Telm", "Telemetra")
|
||||
#define TR_FSW_RESET_TELEM TR("Telm", "Telemetra")
|
||||
#define TR_FSW_RESET_TIMERS "Tmr1","Tmr2","Tmr3"
|
||||
|
||||
#if LCD_W >= 212
|
||||
#define TR_FSW_RESET_TIMERS "Timer 1","Timer 2","Timer 3"
|
||||
#else
|
||||
#define TR_FSW_RESET_TIMERS "Tmr1","Tmr2","Tmr3"
|
||||
#endif
|
||||
|
||||
#define TR_VFSWRESET TR_FSW_RESET_TIMERS,TR("All","Flight"),TR_FSW_RESET_TELEM
|
||||
#define TR_FUNCSOUNDS TR("Bp1","Beep1"),TR("Bp2","Beep2"),TR("Bp3","Beep3"),TR("Ost1","Ostrz1"),TR("Ost2","Ostrz2"),TR("Chee","Cheep"),TR("Rata","Ratata"),"Tick",TR("Syre","Syrena"),TR("Dzwo","Dzwone"),TR("Crck","Krytcz"),TR("Alrm","AlmZeg")
|
||||
|
||||
@@ -126,12 +126,7 @@
|
||||
#define TR_SF_RESERVE "[reserve]"
|
||||
|
||||
#define TR_FSW_RESET_TELEM TR("Telm", "Telemetria")
|
||||
|
||||
#if LCD_W >= 212
|
||||
#define TR_FSW_RESET_TIMERS "Timer 1","Timer 2","Timer 3"
|
||||
#else
|
||||
#define TR_FSW_RESET_TIMERS "Tmr1","Tmr2","Tmr3"
|
||||
#endif
|
||||
#define TR_FSW_RESET_TIMERS "Tmr1","Tmr2","Tmr3"
|
||||
|
||||
#define TR_VFSWRESET TR_FSW_RESET_TIMERS,TR("All","Flight"),TR_FSW_RESET_TELEM
|
||||
|
||||
|
||||
@@ -129,12 +129,7 @@
|
||||
#define TR_SF_RESERVE "[reserv]"
|
||||
|
||||
#define TR_FSW_RESET_TELEM TR("Telm","Telemetri")
|
||||
|
||||
#if LCD_W >= 212
|
||||
#define TR_FSW_RESET_TIMERS "Timer 1","Timer 2","Timer 3"
|
||||
#else
|
||||
#define TR_FSW_RESET_TIMERS "Tmr1","Tmr2","Tmr3"
|
||||
#endif
|
||||
#define TR_FSW_RESET_TIMERS "Tmr1","Tmr2","Tmr3"
|
||||
|
||||
#define TR_VFSWRESET TR_FSW_RESET_TIMERS,"Alla",TR_FSW_RESET_TELEM
|
||||
#define TR_FUNCSOUNDS TR("Bp1","Beep1"),TR("Bp2","Beep2"),TR("Bp3","Beep3"),TR("Wrn1","Warn1"),TR("Wrn2","Warn2"),TR("Chee","Cheep"),TR("Rata","Ratata"),"Tick",TR("Sirn","Siren"),"Ring",TR("SciF","SciFi"),TR("Robt","Robot"),TR("Chrp","Chirp"),"Tada",TR("Crck","Crickt"),TR("Alrm","AlmClk")
|
||||
|
||||
Reference in New Issue
Block a user