From 6ea15a23d619b9e092483bf385284e9238961c97 Mon Sep 17 00:00:00 2001 From: Markus Ransberger Date: Sun, 24 Sep 2023 00:14:51 +0200 Subject: [PATCH] Fix for "MITTERNACHT" to not show "UHR". --- src/matrix/render_functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/render_functions.cpp b/src/matrix/render_functions.cpp index e467b1c..019a2a1 100644 --- a/src/matrix/render_functions.cpp +++ b/src/matrix/render_functions.cpp @@ -230,7 +230,7 @@ String time_to_string(uint8_t hours, uint8_t minutes) message += "ZWOLF "; break; } - if (minutes < 5) + if ((minutes < 5) && (hours != 0)) { message += "UHR "; }