From dada6fe5d42f4487a09070ec3fd14ef129f79ffd Mon Sep 17 00:00:00 2001 From: finga Date: Fri, 24 Sep 2021 23:39:56 +0200 Subject: [PATCH] Allow to print larger integers Use `uint32_t` instead of `uint8_t` when printing integers with `lcd_write_integer_page()`. --- firmware/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/src/main.c b/firmware/src/main.c index 79e953c..f185255 100644 --- a/firmware/src/main.c +++ b/firmware/src/main.c @@ -298,7 +298,7 @@ static void lcd_write_string_page(const char* string, } } -static void lcd_write_integer_page(const uint8_t integer, +static void lcd_write_integer_page(const uint32_t integer, const uint8_t digits, const uint8_t page, const bool invert) {