mirror of https://github.com/espruino/BangleApps
parent
a59579476b
commit
3986899c8b
|
@ -18,10 +18,7 @@ WIDGETS.bluetooth = {
|
|||
disconnect: function() {
|
||||
if(WIDGETS.bluetooth.warningEnabled == 1){
|
||||
Bangle.buzz(700, 1); // buzz on connection loss
|
||||
|
||||
E.showMessage(/*LANG*/"Connection\nlost.","Bluetooth");
|
||||
setInterval(()=>{load();}, 3000); // clear message
|
||||
|
||||
E.showMessage("Connection\nlost.","Bluetooth");
|
||||
WIDGETS.bluetooth.warningEnabled = 0;
|
||||
setTimeout('WIDGETS.bluetooth.warningEnabled = 1;', 30000); // re-notify only after 30 seconds.
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue