mirror of
https://github.com/suchmememanyskill/CYD-Klipper.git
synced 2026-03-21 05:33:24 +00:00
Use display_status for print progress
This commit is contained in:
@@ -241,6 +241,7 @@ void fetch_printer_data()
|
|||||||
|
|
||||||
if (status.containsKey("display_status"))
|
if (status.containsKey("display_status"))
|
||||||
{
|
{
|
||||||
|
printer.print_progress = status["display_status"]["progress"];
|
||||||
const char* message = status["display_status"]["message"];
|
const char* message = status["display_status"]["message"];
|
||||||
lv_create_popup_message(message, 10000);
|
lv_create_popup_message(message, 10000);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -279,7 +279,7 @@ void wifi_ok(){
|
|||||||
while (WiFi.status() != WL_CONNECTED){
|
while (WiFi.status() != WL_CONNECTED){
|
||||||
delay(1000);
|
delay(1000);
|
||||||
Serial.printf("WiFi Status: %s\n", errs[WiFi.status()]);
|
Serial.printf("WiFi Status: %s\n", errs[WiFi.status()]);
|
||||||
if (millis() - start_time_recovery > 10000){
|
if (millis() - start_time_recovery > 15000){
|
||||||
Serial.println("WiFi Connection failed to reconnect. Restarting...");
|
Serial.println("WiFi Connection failed to reconnect. Restarting...");
|
||||||
ESP.restart();
|
ESP.restart();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user