improved tdpro and t5s3 ble sync speed with large contact lists; updated firmware build date

This commit is contained in:
pelgraine
2026-05-02 06:07:12 +10:00
parent 715202849c
commit 6c0c77d788
5 changed files with 25 additions and 6 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
#define FIRMWARE_VER_CODE 11
#ifndef FIRMWARE_BUILD_DATE
#define FIRMWARE_BUILD_DATE "27 April 2026"
#define FIRMWARE_BUILD_DATE "2 May 2026"
#endif
#ifndef FIRMWARE_VERSION
@@ -1798,6 +1798,12 @@ if (curr) curr->poll();
if (_display != NULL && _display->isOn()) {
if (millis() >= _next_refresh && curr) {
// Defer display refresh while BLE is actively transferring contacts.
// E-ink partial update blocks for ~820ms, stalling the BLE send queue
// and adding ~1.6s of dead time to a full contact sync.
if (_serial != NULL && _serial->hasPendingData()) {
_next_refresh = millis() + 500; // Re-check in 500ms
} else {
// Sync dark mode with prefs (settings toggle takes effect here)
if (_node_prefs && display.isDarkMode() != (_node_prefs->dark_mode != 0)) {
display.setDarkMode(_node_prefs->dark_mode != 0);
@@ -1964,6 +1970,7 @@ if (curr) curr->poll();
unsigned long minNext = millis() + 800; // Partial refresh: 800ms floor
#endif
if (_next_refresh < minNext) _next_refresh = minNext;
} // end else (not bulk syncing)
}
#if AUTO_OFF_MILLIS > 0
if (millis() > _auto_off) {