1
0
Fork 0

Bangle.js 2 tweaks

master
Gordon Williams 2021-06-30 13:24:58 +01:00
parent 97e6d54f89
commit 294c544a84
1 changed files with 7 additions and 1 deletions

View File

@ -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';
}
}