fix: improve reconnect logic by replacing delay with yield and vTaskDelay

This commit is contained in:
Manuel Weiser 2025-02-14 17:58:12 +01:00
parent 9ace9f0567
commit f1bd896cf1

View File

@ -425,7 +425,8 @@ void reconnect() {
bambu_connected = false;
oledShowTopRow();
// Wait 5 seconds before retrying
delay(5000);
yield();
vTaskDelay(5000 / portTICK_PERIOD_MS);
}
}
}