[X7] Too many horizontal lines completely screw the X7 LCD - removing the rectangle solves it, still clear enough

This commit is contained in:
Andre Bernet
2016-12-13 15:22:20 +01:00
parent 2dd220e1b9
commit 71a354c1a0
+2
View File
@@ -1198,7 +1198,9 @@ void menuModelFailsafe(event_t event)
}
// Gauge
#if !defined(PCBX7) // X7 LCD doesn't like too many horizontal lines
lcdDrawRect(x+LCD_W-3-wbar, y, wbar+1, 6);
#endif
unsigned int lenChannel = limit((uint8_t)1, uint8_t((abs(channelValue) * wbar/2 + lim/2) / lim), uint8_t(wbar/2));
unsigned int lenFailsafe = limit((uint8_t)1, uint8_t((abs(failsafeValue) * wbar/2 + lim/2) / lim), uint8_t(wbar/2));
coord_t xChannel = (channelValue>0) ? x+LCD_W-3-wbar/2 : x+LCD_W-2-wbar/2-lenChannel;