FM marks - fix INVERS surrounding
This commit is contained in:
@@ -1801,13 +1801,9 @@ uint8_t editDelay(const uint8_t y, const uint8_t event, const uint8_t attr, cons
|
|||||||
void displayFlightModes(uint8_t x, uint8_t y, FlightModesType value)
|
void displayFlightModes(uint8_t x, uint8_t y, FlightModesType value)
|
||||||
{
|
{
|
||||||
lcd_puts(x, y, "FM:");
|
lcd_puts(x, y, "FM:");
|
||||||
uint8_t p = MAX_FLIGHT_MODES;
|
for (uint8_t p=0; p<MAX_FLIGHT_MODES; p++) {
|
||||||
x += 9*FW+2;
|
lcd_putcAtt(lcdNextPos, y, '0'+p, ((value & (1<<p)) ? 0 : INVERS));
|
||||||
do {
|
}
|
||||||
--p;
|
|
||||||
lcd_putcAtt(x, y, '0'+p, ((value & (1<<p)) ? 0 : INVERS));
|
|
||||||
x -= FWNUM;
|
|
||||||
} while (p!=0);
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
void displayFlightModes(uint8_t x, uint8_t y, FlightModesType value)
|
void displayFlightModes(uint8_t x, uint8_t y, FlightModesType value)
|
||||||
|
|||||||
Reference in New Issue
Block a user