style: add numbering to update sections in upgrade.html

refactor: improve readability of checkSpoolmanInstance function
This commit is contained in:
2025-08-28 11:10:10 +02:00
parent 25233f70d5
commit d776956c5e
2 changed files with 5 additions and 3 deletions

View File

@@ -56,7 +56,7 @@
<div class="update-options"> <div class="update-options">
<div class="update-section"> <div class="update-section">
<h2>Firmware Update</h2> <h2>1) Firmware Update</h2>
<p>Upload a new firmware file (upgrade_filaman_firmware_*.bin)</p> <p>Upload a new firmware file (upgrade_filaman_firmware_*.bin)</p>
<div class="update-form"> <div class="update-form">
<form id="firmwareForm" enctype='multipart/form-data' data-type="firmware"> <form id="firmwareForm" enctype='multipart/form-data' data-type="firmware">
@@ -67,7 +67,7 @@
</div> </div>
<div class="update-section"> <div class="update-section">
<h2>Webpage Update</h2> <h2>2) Webpage Update</h2>
<p>Upload a new webpage file (upgrade_filaman_website_*.bin)</p> <p>Upload a new webpage file (upgrade_filaman_website_*.bin)</p>
<div class="update-form"> <div class="update-form">
<form id="webpageForm" enctype='multipart/form-data' data-type="webpage"> <form id="webpageForm" enctype='multipart/form-data' data-type="webpage">

View File

@@ -714,7 +714,9 @@ bool checkSpoolmanInstance() {
} }
http.end(); http.end();
spoolmanApiState = API_IDLE; spoolmanApiState = API_IDLE;
}else{ }
else
{
// If the check is skipped, return the previous status // If the check is skipped, return the previous status
Serial.println("Skipping spoolman healthcheck, API is active."); Serial.println("Skipping spoolman healthcheck, API is active.");
returnValue = spoolmanConnected; returnValue = spoolmanConnected;