From 0a7334e4484fec4901de70c9d76555d275d16b76 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Wed, 25 Sep 2019 18:12:34 +0200 Subject: [PATCH] Fixed big_clock --- src/effect_big_clock.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/effect_big_clock.cpp b/src/effect_big_clock.cpp index fedbd66..669a1fe 100644 --- a/src/effect_big_clock.cpp +++ b/src/effect_big_clock.cpp @@ -6,12 +6,12 @@ void BigClockEffect::loop() { window->clear(); uint8_t h = ntpClient.getHours(); - window->drawChar(&font_numbers3x5_blocky, 6, 2, '0' + (h / 10), &_color_font); - window->drawChar(&font_numbers3x5_blocky, 11, 2, '0' + (h % 10), &_color_font); + window->drawChar(&font_numbers3x5_blocky, 6<<8, 2<<8, '0' + (h / 10), &_color_font); + window->drawChar(&font_numbers3x5_blocky, 11<<8, 2<<8, '0' + (h % 10), &_color_font); uint8_t m = ntpClient.getMinutes(); - window->drawChar(&font_numbers3x5_blocky, 6, 9, '0' + (m / 10), &_color_font); - window->drawChar(&font_numbers3x5_blocky, 11, 9, '0' + (m % 10), &_color_font); + window->drawChar(&font_numbers3x5_blocky, 6<<8, 9<<8, '0' + (m / 10), &_color_font); + window->drawChar(&font_numbers3x5_blocky, 11<<8, 9<<8, '0' + (m % 10), &_color_font); uint8_t s = ntpClient.getSeconds(); if (s & 1) {