Fix compiling for slider-less radios

This commit is contained in:
Raphael Coeffic
2021-05-26 23:23:04 +02:00
committed by Raphael Coeffic
parent 41826f2160
commit 3d9b01745e
+5
View File
@@ -442,10 +442,15 @@ char * getSourceString(char * dest, mixsrc_t idx)
//TODO: add correct symbol
if(idx <= MIXSRC_LAST_STICK) {
dest[0] = CHAR_STICK;
#if NUM_SLIDERS > 0
} else if (idx < MIXSRC_FIRST_SLIDER) {
dest[0] = CHAR_POT;
} else {
dest[0] = CHAR_SLIDER;
#else
} else {
dest[0] = CHAR_POT;
#endif
}
idx -= MIXSRC_Rud;