style: add numbering to update sections in upgrade.html
refactor: improve readability of checkSpoolmanInstance function
This commit is contained in:
@@ -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">
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user