Use existing function to generate switch name in YAML switch warning field

This commit is contained in:
Raphael Coeffic
2021-12-17 11:02:51 +01:00
parent 665b9ee4d1
commit 710677a1f7
4 changed files with 46 additions and 18 deletions
+2
View File
@@ -74,6 +74,8 @@ char *getGVarString(int idx);
char *getSwitchPositionName(char *dest, swsrc_t idx);
char *getSwitchName(char *dest, swsrc_t idx);
char *getSourceString(char *dest, mixsrc_t idx);
int getRawSwitchIdx(char sw);
char getRawSwitchFromIdx(int sw);
#endif
char *getFlightModeString(char *dest, int8_t idx);