From b2952cb6a29091820d5317675bd4ad8fec1a4894 Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Mon, 10 Jul 2023 13:28:27 +0200 Subject: [PATCH] rename displayColumn --- include/display.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/display.h b/include/display.h index c193fff..e4344d6 100644 --- a/include/display.h +++ b/include/display.h @@ -25,10 +25,9 @@ Task tPublishBrightness(TASK_IMMEDIATE, TASK_ONCE, Mqtt::publishBrightness, &ts, namespace Display { - void displayColon(); - Task tDisplay(500, TASK_FOREVER, displayColon, &ts, true); + void display(); + Task tDisplay(500, TASK_FOREVER, display, &ts, true); - uint8_t brightness = BRIGHTNESS_NIGHT; int currentHour = -1; int currentMin = -1; bool hourFormat24 = false; @@ -88,7 +87,7 @@ namespace Display { clockDisplay.drawColon(colonOn); } - void displayColon() { + void display() { static bool colonOn = false; drawColon(colonOn); @@ -128,6 +127,6 @@ namespace Display { clockDisplay.begin(DISPLAY_ADDRESS); clockDisplay.setBrightness(brightness); drawTime(); - displayColon(); + display(); } }