fix(ui): force immediate refresh when BLE disconnects

UITask.onBLEDisconnected() sets _next_refresh=0 so the BLE icon
updates instantly instead of waiting for the next polling cycle.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
MarekZegare4
2026-06-12 12:59:41 +02:00
co-authored by Claude Sonnet 4.6
parent a1fc67ed96
commit ec4b7d625f
2 changed files with 7 additions and 1 deletions
+1
View File
@@ -132,6 +132,7 @@ public:
curr = NULL;
}
void begin(DisplayDriver* display, SensorManager* sensors, NodePrefs* node_prefs);
void onBLEDisconnected() override { _next_refresh = 0; }
NodePrefs* getNodePrefs() const { return _node_prefs; }
uint16_t getBattMilliVolts() const { return _batt_mv > 0 ? _batt_mv : AbstractUITask::getBattMilliVolts(); }