fix drawSource (#4843)

This commit is contained in:
3djc
2017-04-23 18:00:11 +02:00
committed by Bertrand Songis
parent 9193604aff
commit 591522c25a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -873,7 +873,7 @@ void drawSource(coord_t x, coord_t y, uint32_t idx, LcdFlags att)
}
}
#endif
else if (idx < MIXSRC_LAST_POT) {
else if (idx <= MIXSRC_LAST_POT) {
idx = idx - MIXSRC_Rud;
if (ZEXIST(g_eeGeneral.anaNames[idx])) {
if (idx < MIXSRC_FIRST_POT-MIXSRC_Rud )
+1 -1
View File
@@ -607,7 +607,7 @@ void drawSource(coord_t x, coord_t y, uint32_t idx, LcdFlags att)
}
}
else if (idx < MIXSRC_LAST_POT) {
else if (idx <= MIXSRC_LAST_POT) {
idx = idx-MIXSRC_Rud;
if (ZEXIST(g_eeGeneral.anaNames[idx])) {
if (idx < MIXSRC_FIRST_POT-MIXSRC_Rud )