Reworks startup graphics and timings

Reworks the graphics during the startup. Introduces a progress bar to visualize how much of the boot is completed. Also changes the the optics of the bambu, spoolman and wifi icons. They are now always displayed but they will be striked out if not working and they will start blinking. Also removes some unnessesary waits.
This commit is contained in:
Jan Philipp Ecker
2025-08-02 22:52:19 +02:00
parent 7ba0c4f933
commit 4b81703e38
11 changed files with 75 additions and 38 deletions

View File

@@ -551,9 +551,6 @@ bool checkSpoolmanInstance(const String& url) {
if (httpCode > 0) {
if (httpCode == HTTP_CODE_OK) {
oledShowMessage("Spoolman available");
vTaskDelay(1000 / portTICK_PERIOD_MS);
String payload = http.getString();
JsonDocument doc;
DeserializationError error = deserializeJson(doc, payload);
@@ -617,6 +614,7 @@ String loadSpoolmanUrl() {
}
bool initSpoolman() {
oledShowProgressBar(3, 7, DISPLAY_BOOT_TEXT, "Spoolman init");
spoolmanUrl = loadSpoolmanUrl();
spoolmanUrl.trim();
if (spoolmanUrl == "") {