From 7a67425d6d32079855d53a0ff72a8896ba0fe9e7 Mon Sep 17 00:00:00 2001 From: tovjemam Date: Mon, 7 Sep 2026 15:32:57 +0200 Subject: [PATCH] Change time intervals to real ones --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index d333c06..e7e3a04 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -30,10 +30,10 @@ static bool s_valve_open = false; // false = closed, true = open static float s_temp_accum = 0.0f; static int s_temp_count = 0; -// constexpr int TEMP_INTERVAL = 10000; // 10 seconds -constexpr int TEMP_INTERVAL = 1000; -// constexpr int TEMP_AVERAGING_INTERVAL = 6*15; // 15 minutes (6 readings of 10 seconds each) -constexpr int TEMP_AVERAGING_INTERVAL = 10; +constexpr int TEMP_INTERVAL = 10000; // 10 seconds +// constexpr int TEMP_INTERVAL = 1000; +constexpr int TEMP_AVERAGING_INTERVAL = 6*15; // 15 minutes (6 readings of 10 seconds each) +// constexpr int TEMP_AVERAGING_INTERVAL = 10; constexpr size_t TEMP_HISTORY_CAPACITY = 4*24*5; // 5 days of 15-minute intervals static float s_temp_history[TEMP_HISTORY_CAPACITY] = {0.0};