Dotted border around voltage on v4.1
This commit is contained in:
+1
-1
@@ -440,7 +440,7 @@ void putsTime(uint8_t x,uint8_t y,int16_t tme,uint8_t att,uint8_t att2)
|
|||||||
// TODO to be optimized with putsTelemetryValue
|
// TODO to be optimized with putsTelemetryValue
|
||||||
void putsVolts(uint8_t x, uint8_t y, uint16_t volts, uint8_t att)
|
void putsVolts(uint8_t x, uint8_t y, uint16_t volts, uint8_t att)
|
||||||
{
|
{
|
||||||
lcd_outdezAtt(x, y, (int16_t)volts, att | ((att&PREC2)==PREC2 ? 0 : PREC1));
|
lcd_outdezAtt(x, y, (int16_t)volts, (~NO_UNIT) & (att | ((att&PREC2)==PREC2 ? 0 : PREC1)));
|
||||||
if (~att & NO_UNIT) lcd_putcAtt(lcd_lastPos, y, 'v', att);
|
if (~att & NO_UNIT) lcd_putcAtt(lcd_lastPos, y, 'v', att);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user