Fix compiling for slider-less radios
This commit is contained in:
committed by
Raphael Coeffic
parent
41826f2160
commit
3d9b01745e
@@ -442,10 +442,15 @@ char * getSourceString(char * dest, mixsrc_t idx)
|
|||||||
//TODO: add correct symbol
|
//TODO: add correct symbol
|
||||||
if(idx <= MIXSRC_LAST_STICK) {
|
if(idx <= MIXSRC_LAST_STICK) {
|
||||||
dest[0] = CHAR_STICK;
|
dest[0] = CHAR_STICK;
|
||||||
|
#if NUM_SLIDERS > 0
|
||||||
} else if (idx < MIXSRC_FIRST_SLIDER) {
|
} else if (idx < MIXSRC_FIRST_SLIDER) {
|
||||||
dest[0] = CHAR_POT;
|
dest[0] = CHAR_POT;
|
||||||
} else {
|
} else {
|
||||||
dest[0] = CHAR_SLIDER;
|
dest[0] = CHAR_SLIDER;
|
||||||
|
#else
|
||||||
|
} else {
|
||||||
|
dest[0] = CHAR_POT;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
idx -= MIXSRC_Rud;
|
idx -= MIXSRC_Rud;
|
||||||
|
|||||||
Reference in New Issue
Block a user