From 8e0e408410c5f8b73afa29a14f2cb7a716333c62 Mon Sep 17 00:00:00 2001 From: Carl Philipp Klemm <philipp@uvos.xyz> Date: Thu, 15 Feb 2024 17:02:17 +0100 Subject: [PATCH] reduce the poilling rate of the current monitoring thread --- main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/main.cpp b/main.cpp index 8f1c130..dd740ac 100644 --- a/main.cpp +++ b/main.cpp @@ -134,6 +134,7 @@ static void currentMonitorThreadFn(Heaters* heaters, Vcpps* psu, float minVoltag Log(Log::INFO)<<"Voltage low at "<<status.voltage<<", sheading load. Max current now: "<<maxCurrent; heaters->setMaxCurrent(maxCurrent); } + std::this_thread::sleep_for(std::chrono::seconds(10)); } } -- GitLab