From da83ed3f34c86e9c9034955ccf78fdd1d0173195 Mon Sep 17 00:00:00 2001 From: bsongis Date: Tue, 20 Mar 2012 21:27:15 +0000 Subject: [PATCH] Dotted border around voltage on v4.1 --- src/lcd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lcd.cpp b/src/lcd.cpp index 4c8bbcbcc..133870d81 100644 --- a/src/lcd.cpp +++ b/src/lcd.cpp @@ -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 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); }