mirror of https://github.com/espruino/BangleApps
Bangle.js 2 tweaks
parent
97e6d54f89
commit
294c544a84
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue