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(); } }