Bug fix: Dots/colon not showing #65

Dots/colon not showing when calling showNumberDec/Hex with
value of 0 and leading zero set to false.
This commit is contained in:
Avishay
2020-06-27 23:30:06 +03:00
parent aa12aa2879
commit 9486982048
+6 -5
View File
@@ -167,12 +167,13 @@ void TM1637Display::showNumberBaseEx(int8_t base, uint16_t num, uint8_t dots, bo
num /= base;
}
if(dots != 0)
{
showDots(dots, digits);
}
}
if(dots != 0)
{
showDots(dots, digits);
}
setSegments(digits, length, pos);
}