Skip to content

Commit

Permalink
Bangle.js 2 tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Jun 30, 2021
1 parent 97e6d54 commit 294c544
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,15 @@ var RECOMMENDED_VERSION = "2v08";
})();

function onFoundDeviceInfo(deviceId, deviceVersion) {
if (deviceId != "BANGLEJS") {
if (deviceId != "BANGLEJS" && deviceId != "BANGLEJS2") {
showToast(`You're using ${deviceId}, not a Bangle.js. Did you want <a href="https://espruino.com/apps">espruino.com/apps</a> instead?` ,"warning", 20000);
} else if (versionLess(deviceVersion, RECOMMENDED_VERSION)) {
showToast(`You're using an old Bangle.js firmware (${deviceVersion}). You can <a href="https://www.espruino.com/Bangle.js#firmware-updates" target="_blank">update with the instructions here</a>` ,"warning", 20000);
}
if (deviceId == "BANGLEJS") {
Const.MESSAGE_RELOAD = 'Hold BTN3\nto reload';
}
if (deviceId == "BANGLEJS2") {
Const.MESSAGE_RELOAD = 'Hold Button\nto reload';
}
}

0 comments on commit 294c544

Please sign in to comment.