@@ -32,7 +32,7 @@
bit of code that runs when Bangle.js starts, and it is able to update the
Bangle.js firmware. Normally you would update firmware via this Firmware
Updater app, but if for some reason Bangle.js will not boot, you can
-
.
On DFU 2v19 and earlier, iOS devices could have issues updating firmware - 2v20 fixes this.
DFU is itself a bootloader, but here we're calling it DFU to avoid confusion
with the Bootloader app in the app loader (which prepares Bangle.js for running apps).
Advanced
Firmware updates via this tool work differently to the NRF Connect method mentioned on
- the Bangle.js 2 page. Firmware
+ the Bangle.js 2 page. Firmware
is uploaded to a file on the Bangle. Once complete the Bangle reboots and DFU copies
the new firmware into internal Storage.
In addition to the links above, you can upload a hex or zip file directly below. This file should be an .app_hex
From 71f04f0b05c56666b0fe5c6ac93e90cfe64a145f Mon Sep 17 00:00:00 2001
From: Logan B <3870583+thinkpoop@users.noreply.github.com>
Date: Mon, 5 Feb 2024 21:42:29 -0600
Subject: [PATCH 2/3] fwupload: add e.preventDefault on toggles to prevent
jumping to top of page
---
apps/fwupdate/custom.html | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/apps/fwupdate/custom.html b/apps/fwupdate/custom.html
index c2a12bb91..f0f25f551 100644
--- a/apps/fwupdate/custom.html
+++ b/apps/fwupdate/custom.html
@@ -436,13 +436,15 @@ function handleUpload() {
document.getElementById('fileLoader').addEventListener('change', handleFileSelect, false);
document.getElementById("upload").addEventListener("click", handleUpload);
-document.getElementById("info-btn").addEventListener("click", function() {
+document.getElementById("info-btn").addEventListener("click", function(e) {
document.getElementById("info-btn").style = "display:none";
document.getElementById("info-div").style = "";
+ e.preventDefault();
});
-document.getElementById("advanced-btn").addEventListener("click", function() {
+document.getElementById("advanced-btn").addEventListener("click", function(e) {
document.getElementById("advanced-btn").style = "display:none";
document.getElementById("advanced-div").style = "";
+ e.preventDefault();
});
setTimeout(checkForFileOnServer, 10);
From 72de183b1ad37bf8571fd4aa8fc700631aa79441 Mon Sep 17 00:00:00 2001
From: Logan B <3870583+thinkpoop@users.noreply.github.com>
Date: Mon, 5 Feb 2024 21:46:17 -0600
Subject: [PATCH 3/3] fwupload: Add Firmware ChangeLog section with links
---
apps/fwupdate/custom.html | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/apps/fwupdate/custom.html b/apps/fwupdate/custom.html
index f0f25f551..a28d327d9 100644
--- a/apps/fwupdate/custom.html
+++ b/apps/fwupdate/custom.html
@@ -58,6 +58,15 @@
+
Firmware ChangeLog ▼
+
+
@@ -446,6 +455,11 @@ document.getElementById("advanced-btn").addEventListener("click", function(e) {
document.getElementById("advanced-div").style = "";
e.preventDefault();
});
+document.getElementById("changelog-btn").addEventListener("click", function(e) {
+ document.getElementById("changelog-btn").style = "display:none";
+ document.getElementById("changelog-div").style = "";
+ e.preventDefault();
+});
setTimeout(checkForFileOnServer, 10);