From 94869820484f04638191d9fcb2e90d234fe5e975 Mon Sep 17 00:00:00 2001 From: Avishay Date: Sat, 27 Jun 2020 23:30:06 +0300 Subject: [PATCH] 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. --- TM1637Display.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/TM1637Display.cpp b/TM1637Display.cpp index 2f45f19..eada692 100644 --- a/TM1637Display.cpp +++ b/TM1637Display.cpp @@ -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); }