feat(color): Show index and name (when set) for GVs in input source (#2219)

This commit is contained in:
Peter Feerick
2023-11-13 09:02:36 +10:00
committed by GitHub
parent 3cc010020d
commit bd2d11ef8b
+8
View File
@@ -726,7 +726,15 @@ char *getSourceString(char (&dest)[L], mixsrc_t idx)
}
} else if (idx <= MIXSRC_LAST_GVAR) {
idx -= MIXSRC_FIRST_GVAR;
#if defined(LIBOPENUI)
char* s = strAppendStringWithIndex(dest, STR_GV, idx + 1);
if (g_model.gvars[idx].name[0]) {
s = strAppend(s, ":");
getGVarString(s, idx);
}
#else
strAppendStringWithIndex(dest, STR_GV, idx + 1);
#endif
} else if (idx < MIXSRC_FIRST_TIMER) {
// Built-in sources: TX Voltage, Time, GPS (+ reserved)
const char* src_str;