mirror of https://github.com/espruino/BangleApps
typos
parent
5254f20bb6
commit
50e38126fb
|
@ -28,7 +28,7 @@ WIDGETS.bluetooth_notify = {
|
||||||
disconnect: function() {
|
disconnect: function() {
|
||||||
if(WIDGETS.bluetooth_notify.warningEnabled == 1){
|
if(WIDGETS.bluetooth_notify.warningEnabled == 1){
|
||||||
E.showMessage(/*LANG*/'Connection\nlost.', 'Bluetooth');
|
E.showMessage(/*LANG*/'Connection\nlost.', 'Bluetooth');
|
||||||
setInterval(WIDGETS.bluetooth_notify.redrawCurrentApp()=>{;}, 3000); // clear message
|
setInterval(()=>{WIDGETS.bluetooth_notify.redrawCurrentApp();}, 3000); // clear message - this will reload the widget, resetting 'warningEnabled'.
|
||||||
|
|
||||||
WIDGETS.bluetooth_notify.warningEnabled = 0;
|
WIDGETS.bluetooth_notify.warningEnabled = 0;
|
||||||
setTimeout('WIDGETS.bluetooth_notify.warningEnabled = 1;', 30000); // don't buzz for the next 30 seconds.
|
setTimeout('WIDGETS.bluetooth_notify.warningEnabled = 1;', 30000); // don't buzz for the next 30 seconds.
|
||||||
|
|
Loading…
Reference in New Issue