mirror of
https://github.com/avishorp/TM1637.git
synced 2026-07-27 19:56:13 +00:00
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:
+6
-5
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user