Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

Files at this revision

API Documentation at this revision

Comitter:
andrewboyson
Date:
Sun Jan 17 18:24:37 2021 +0000
Parent:
149:24365666d28d
Child:
151:10db7ff62b82
Commit message:
Tidied the Firmware upload message to warn the user (me) against restarting before the file has been saved ok.

Changed in this revision

base/firmware/web-firmware-script.inc Show annotated file Show diff for this revision Revisions of this file
base/firmware/web-firmware-script.js Show annotated file Show diff for this revision Revisions of this file
--- a/base/firmware/web-firmware-script.inc	Sun Jan 17 17:48:09 2021 +0000
+++ b/base/firmware/web-firmware-script.inc	Sun Jan 17 18:24:37 2021 +0000
@@ -24,7 +24,9 @@
 "}\n"
 "function xhrUploadProgress(e)\n"
 "{\n"
-"    logUpload('Uploading ' + e.total + ' bytes; ' + e.loaded + ' bytes so far...');\n"
+"    logUpload('Total ' + e.total  + ' bytes\\r\\n' +\n"
+"              'Sent  ' + e.loaded + ' bytes\\r\\n' +\n"
+"              'Don\\'t restart yet, wait for the ok...');\n"
 "}\n"
 "function xhrUploadStart()\n"
 "{\n"
--- a/base/firmware/web-firmware-script.js	Sun Jan 17 17:48:09 2021 +0000
+++ b/base/firmware/web-firmware-script.js	Sun Jan 17 18:24:37 2021 +0000
@@ -24,7 +24,9 @@
 }
 function xhrUploadProgress(e)
 {
-    logUpload('Uploading ' + e.total + ' bytes; ' + e.loaded + ' bytes so far...');
+    logUpload('Total ' + e.total  + ' bytes\r\n' +
+              'Sent  ' + e.loaded + ' bytes\r\n' +
+              'Don\'t restart yet, wait for the ok...');
 }
 function xhrUploadStart()
 {