Notify on mock device connectio
This commit is contained in:
parent
9a0ebcca06
commit
da6fef6080
|
@ -46,7 +46,7 @@ devices.listen = function () {
|
||||||
};
|
};
|
||||||
devices.ready = function (event, arg) {
|
devices.ready = function (event, arg) {
|
||||||
'use strict';
|
'use strict';
|
||||||
console.dir(arg)
|
//console.dir(arg)
|
||||||
let opt;
|
let opt;
|
||||||
let devs = [];
|
let devs = [];
|
||||||
let notify = 'Connected to ';
|
let notify = 'Connected to ';
|
||||||
|
@ -70,6 +70,8 @@ devices.ready = function (event, arg) {
|
||||||
}
|
}
|
||||||
if (notify !== 'Connected to ') {
|
if (notify !== 'Connected to ') {
|
||||||
gui.notify('DEVICES', notify);
|
gui.notify('DEVICES', notify);
|
||||||
|
} else {
|
||||||
|
gui.notify('DEVICES', 'Connected to mock devices')
|
||||||
}
|
}
|
||||||
if (devs.length > 0) {
|
if (devs.length > 0) {
|
||||||
$('#devices').empty();
|
$('#devices').empty();
|
||||||
|
|
Loading…
Reference in New Issue