Hide spinner after 5 seconds, show message if not connected.
This commit is contained in:
parent
fb54403891
commit
b114ef8b0e
|
@ -24,8 +24,8 @@ mobile.ble.scan = function () {
|
||||||
ble.scan([], 5, mobile.ble.onDiscover, mobile.ble.onError);
|
ble.scan([], 5, mobile.ble.onDiscover, mobile.ble.onError);
|
||||||
mobile.ble.devices = [];
|
mobile.ble.devices = [];
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (!mobile.ble.connected) {
|
|
||||||
spinnerHide();
|
spinnerHide();
|
||||||
|
if (!mobile.ble.connected) {
|
||||||
alert('No INTVAL devices found.');
|
alert('No INTVAL devices found.');
|
||||||
settingsPage();
|
settingsPage();
|
||||||
}
|
}
|
||||||
|
@ -128,6 +128,7 @@ mobile.init = function () {
|
||||||
}
|
}
|
||||||
spinnerInit();
|
spinnerInit();
|
||||||
mobile.ble.scan();
|
mobile.ble.scan();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
mobile.getState = function () {
|
mobile.getState = function () {
|
||||||
|
|
Loading…
Reference in New Issue