Removed naked console.log statements that were used to debug a serial issue. If needed they can be re-added to the actual log library.
This commit is contained in:
parent
3e0ac3f0d0
commit
8c14a06b96
|
@ -107,7 +107,7 @@ class Arduino {
|
||||||
async send(serial, cmd) {
|
async send(serial, cmd) {
|
||||||
const device = this.alias[serial];
|
const device = this.alias[serial];
|
||||||
let results;
|
let results;
|
||||||
console.log(`${cmd} -> ${serial}`);
|
//console.log(`${cmd} -> ${serial}`)
|
||||||
if (this.locks[serial]) {
|
if (this.locks[serial]) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -164,7 +164,7 @@ class Arduino {
|
||||||
const end = new Date().getTime();
|
const end = new Date().getTime();
|
||||||
const ms = end - this.timer;
|
const ms = end - this.timer;
|
||||||
let complete;
|
let complete;
|
||||||
console.log(`${serial} -> ${data}`);
|
//console.log(`${serial} -> ${data}`);
|
||||||
if (this.queue[data] !== undefined) {
|
if (this.queue[data] !== undefined) {
|
||||||
this.locks[serial] = false;
|
this.locks[serial] = false;
|
||||||
complete = this.queue[data](ms); //execute callback
|
complete = this.queue[data](ms); //execute callback
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -116,7 +116,7 @@ class Arduino {
|
||||||
async send (serial : string, cmd : string) {
|
async send (serial : string, cmd : string) {
|
||||||
const device : any = this.alias[serial]
|
const device : any = this.alias[serial]
|
||||||
let results : any
|
let results : any
|
||||||
console.log(`${cmd} -> ${serial}`)
|
//console.log(`${cmd} -> ${serial}`)
|
||||||
if (this.locks[serial]) {
|
if (this.locks[serial]) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
@ -174,7 +174,7 @@ class Arduino {
|
||||||
const end : number = new Date().getTime();
|
const end : number = new Date().getTime();
|
||||||
const ms : number = end - this.timer;
|
const ms : number = end - this.timer;
|
||||||
let complete : any;
|
let complete : any;
|
||||||
console.log(`${serial} -> ${data}`);
|
//console.log(`${serial} -> ${data}`);
|
||||||
if (this.queue[data] !== undefined) {
|
if (this.queue[data] !== undefined) {
|
||||||
this.locks[serial] = false;
|
this.locks[serial] = false;
|
||||||
complete = this.queue[data](ms); //execute callback
|
complete = this.queue[data](ms); //execute callback
|
||||||
|
|
Loading…
Reference in New Issue