Enhance logging functionality across multiple scripts, enabling debug mode checks and detailed communication logs for serial connections and firmware updates.

This commit is contained in:
“VeLiTi”
2025-11-14 16:38:05 +01:00
parent bd27bab30f
commit 04b9814c07
6 changed files with 214 additions and 19 deletions

View File

@@ -58,7 +58,7 @@ $view .= '<div class="content-block">
<div class="" id="updateAvailabe" style="margin-top: 10px;">
<button class="btn" id="updateFirmware" style="display:none;"
emergencyPlug-update
emergencyPlug-update verify
board="emergencyPlug"
port-filters= "[{usbVendorId: 1027, usbProductId: 24597}\];"
disabled>Update Firmware
@@ -99,6 +99,7 @@ echo '
<script src="assets/upload.js?'.script_version.'"></script>
<script>
var link = "'.$baseurl.'";
var DEBUG = '.(debug ? 'true' : 'false').';
var port, textEncoder, writableStreamClosed, writer, historyIndex = -1;
const lineHistory = [];
</script>';