mirror of
https://github.com/ratspeak/ratdeck.git
synced 2026-07-19 02:06:13 +00:00
Reduce device freeze on large TCP hubs, reduce announce processing overhead
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user