Fix boot progress calcs

This commit is contained in:
Edward Firmo
2024-03-17 10:50:09 +01:00
parent 59d4c09857
commit 0d4293b6e4

View File

@@ -1815,7 +1815,7 @@ script:
ESP_LOGD("script.boot_progress", "Progress: Completed");
disp1->set_component_value("boot.progress", 100);
} else {
step = int(round((blueprint_status->state + (step/10))/2));
step = int(round((blueprint_status->state + (step*10))/2));
ESP_LOGD("script.boot_progress", "Progress: %i%%", step);
disp1->set_component_value("boot.progress", step);
}