Fix boot progress calcs
This commit is contained in:
@@ -1815,7 +1815,7 @@ script:
|
|||||||
ESP_LOGD("script.boot_progress", "Progress: Completed");
|
ESP_LOGD("script.boot_progress", "Progress: Completed");
|
||||||
disp1->set_component_value("boot.progress", 100);
|
disp1->set_component_value("boot.progress", 100);
|
||||||
} else {
|
} 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);
|
ESP_LOGD("script.boot_progress", "Progress: %i%%", step);
|
||||||
disp1->set_component_value("boot.progress", step);
|
disp1->set_component_value("boot.progress", step);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user