fix upload instructions
parent
8d198bba6d
commit
a0ca017af7
|
|
@ -32,12 +32,13 @@ DEVICEINFO = DEVICEINFO.filter(x=>x.id.startsWith("BANGLEJS"));
|
||||||
|
|
||||||
// When a device is found, filter the apps accordingly
|
// When a device is found, filter the apps accordingly
|
||||||
function onFoundDeviceInfo(deviceId, deviceVersion) {
|
function onFoundDeviceInfo(deviceId, deviceVersion) {
|
||||||
var fwURL = "#";
|
var fwURL = "#", fwExtraText = "";
|
||||||
if (deviceId == "BANGLEJS") {
|
if (deviceId == "BANGLEJS") {
|
||||||
fwURL = "https://www.espruino.com/Bangle.js#firmware-updates";
|
fwURL = "https://www.espruino.com/Bangle.js#firmware-updates";
|
||||||
Const.MESSAGE_RELOAD = 'Hold BTN3\nto reload';
|
Const.MESSAGE_RELOAD = 'Hold BTN3\nto reload';
|
||||||
}
|
}
|
||||||
if (deviceId == "BANGLEJS2") {
|
if (deviceId == "BANGLEJS2") {
|
||||||
|
fwExtraText = "with the <b>Firmware Update</b> app in this App Loader, or "
|
||||||
fwURL = "https://www.espruino.com/Bangle.js2#firmware-updates";
|
fwURL = "https://www.espruino.com/Bangle.js2#firmware-updates";
|
||||||
Const.MESSAGE_RELOAD = 'Hold button\nto reload';
|
Const.MESSAGE_RELOAD = 'Hold button\nto reload';
|
||||||
}
|
}
|
||||||
|
|
@ -45,7 +46,7 @@ function onFoundDeviceInfo(deviceId, deviceVersion) {
|
||||||
if (deviceId != "BANGLEJS" && deviceId != "BANGLEJS2") {
|
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);
|
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)) {
|
} else if (versionLess(deviceVersion, RECOMMENDED_VERSION)) {
|
||||||
showToast(`You're using an old Bangle.js firmware (${deviceVersion}) and ${RECOMMENDED_VERSION} is available (<a href="http://www.espruino.com/ChangeLog" target="_blank">see changes</a>). You can <a href="${fwURL}" target="_blank">update with the instructions here</a>` ,"warning", 20000);
|
showToast(`You're using an old Bangle.js firmware (${deviceVersion}) and ${RECOMMENDED_VERSION} is available (<a href="http://www.espruino.com/ChangeLog" target="_blank">see changes</a>). You can update ${fwExtraText}<a href="${fwURL}" target="_blank">with the instructions here</a>` ,"warning", 20000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue