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);
|
||||
mobile.ble.devices = [];
|
||||
setTimeout(() => {
|
||||
if (!mobile.ble.connected) {
|
||||
spinnerHide();
|
||||
if (!mobile.ble.connected) {
|
||||
alert('No INTVAL devices found.');
|
||||
settingsPage();
|
||||
}
|
||||
|
@ -128,6 +128,7 @@ mobile.init = function () {
|
|||
}
|
||||
spinnerInit();
|
||||
mobile.ble.scan();
|
||||
|
||||
};
|
||||
|
||||
mobile.getState = function () {
|
||||
|
|
Loading…
Reference in New Issue