fix: improve reconnect logic by replacing delay with yield and vTaskDelay
This commit is contained in:
parent
9ace9f0567
commit
f1bd896cf1
@ -425,7 +425,8 @@ void reconnect() {
|
||||
bambu_connected = false;
|
||||
oledShowTopRow();
|
||||
// Wait 5 seconds before retrying
|
||||
delay(5000);
|
||||
yield();
|
||||
vTaskDelay(5000 / portTICK_PERIOD_MS);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user