mirror of
https://github.com/tugsi/Filaman.git
synced 2026-11-12 10:50:38 +01:00
fix: improve reconnect logic by replacing delay with yield and vTaskDelay
This commit is contained in:
1 parent
9ace9f0567
commit
f1bd896cf1
1 file changed
+2
-1
+2
-1
@@ -425,7 +425,8 @@ void reconnect() {
|
||||
bambu_connected = false;
|
||||
oledShowTopRow();
|
||||
// Wait 5 seconds before retrying
|
||||
delay(5000);
|
||||
yield();
|
||||
vTaskDelay(5000 / portTICK_PERIOD_MS);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user