From 6f1be51a9e724bba0a23ea9a854ae1d33d34490a Mon Sep 17 00:00:00 2001 From: Marcel Peterkau Date: Sun, 13 Jun 2021 23:18:50 +0200 Subject: [PATCH] Adjustet Counter to match Minute and Seconds --- src/main.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 7f1a0b3..4ea6aa7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -64,9 +64,9 @@ DNSServer dnsServer; #endif AsyncWebServer server(80); -Ticker FactionTicker(FactionTicker_callback, 500, 0, MILLIS); +Ticker FactionTicker(FactionTicker_callback, 1000, 0, MILLIS); Ticker SerialOutputTicker(serialOutTicker_callback, 5000, 0, MILLIS); -Ticker InputGetterTicker(inputGetterTicker_callback, 500, 0, MILLIS); +Ticker InputGetterTicker(inputGetterTicker_callback, 250, 0, MILLIS); Ticker PowerMonitorTicker(powerMonitorTicker_callback, 5000, 0, MILLIS); Factions activeFaction = NONE; @@ -253,9 +253,10 @@ void SevenSeg_Output() disp_FAC_2.setBrightness(activeFaction == FACTION_2 ? 7 : 0); disp_FAC_3.setBrightness(activeFaction == FACTION_3 ? 7 : 0); - disp_FAC_1.showNumberDecEx(Count_Faction_1 / 20, Faction_1_dot, true, 4, 0); - disp_FAC_2.showNumberDecEx(Count_Faction_2 / 20, Faction_2_dot, true, 4, 0); - disp_FAC_3.showNumberDecEx(Count_Faction_3 / 20, Faction_3_dot, true, 4, 0); + disp_FAC_1.showNumberDecEx(Count_Faction_1 / 60, Faction_1_dot, true, 4, 0); + disp_FAC_2.showNumberDecEx(Count_Faction_2 / 60, Faction_2_dot, true, 4, 0); + disp_FAC_3.showNumberDecEx(Count_Faction_3 / 60, Faction_3_dot, true, 4, 0); + } } void FactionTicker_callback()