Reduce device freeze on large TCP hubs, reduce announce processing overhead

This commit is contained in:
DeFiDude
2026-03-28 21:11:31 -06:00
parent 59200d6aea
commit 9e4217085a
5 changed files with 14 additions and 9 deletions
+5
View File
@@ -985,6 +985,11 @@ void loop() {
}
}
// 4.5 Keep LVGL responsive after heavy RNS processing (announce floods)
if (rnsDuration > LVGL_INTERVAL_MS && powerMgr.isScreenOn()) {
lv_timer_handler();
}
// 5. Auto-announce every 5-360 minutes (user configured)
const unsigned long announceInterval = (unsigned long)userConfig.settings().announceInterval * 60000; // m -> ms
if (bootComplete && millis() - lastAutoAnnounce >= announceInterval) {