You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dfu/dfu.js
+23-3Lines changed: 23 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,20 @@ const FwTypeEnum = {
47
47
default: 0,
48
48
};
49
49
50
+
functionnormalizeHwTypeName(name){
51
+
if(name==='rangeredge_airq_nrf52840'){
52
+
return'rangeredge_nrf52840';
53
+
}
54
+
returnname;
55
+
}
56
+
57
+
functionformatHwTypeLabel(name){
58
+
if(name==='rangeredge_airq_nrf52840'){
59
+
return'rangeredge_nrf52840 (AirQ)';
60
+
}
61
+
returnname;
62
+
}
63
+
50
64
constdfuCheckMessages={
51
65
[DfuFileCheckResult.ok]: 'DFU file looks good for this device.',
52
66
[DfuFileCheckResult.warnOlderFirmware]: 'Selected firmware is older than the current device firmware. You can continue, but downgrading may not be supported.',
@@ -179,7 +193,8 @@ function setBundledStatus(message) {
Copy file name to clipboardExpand all lines: to-do.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,8 @@
4
4
2. Decide if we should auto-generate `assets/dfu/manifest.json` from `assets/dfu/releases/` (script or manual). (Done: manifest regenerated from releases)
5
5
3. Add device-aware filtering so the bundled selector only shows matching `hwType` + `hwVersion`. (Done, includes v5 migration gating for v6+)
6
6
4. Update DFU UI copy if needed (hint text currently says `.bin or .zip` but bundled flow is `.bin`). (Partially done: “bundled” wording updated to “built‑in update”; hint still says `.bin or .zip`)
7
-
5. Test service worker caching with offline mode and verify bundled DFU selection works end-to-end. (Pending)
8
-
6.Add`rangeredge_airq_nrf52840`hardware type mapping (need numeric hwType ID from device firmware). (Pending)
7
+
5. Test service worker caching with offline mode and verify bundled DFU selection works end-to-end. (Done)
8
+
6.Treat`rangeredge_airq_nrf52840`as `rangeredge_nrf52840` for DFU selection and file checks. (Done)
9
9
10
10
Additional changes completed:
11
11
- Single source of truth for hardware types and versions via `hardware-types.js`.
0 commit comments