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:
Matt McWilliams 2021-03-19 12:10:07 -04:00
parent 3e0ac3f0d0
commit 8c14a06b96
3 changed files with 5 additions and 5 deletions

View File

@ -107,7 +107,7 @@ class Arduino {
async send(serial, cmd) {
const device = this.alias[serial];
let results;
console.log(`${cmd} -> ${serial}`);
//console.log(`${cmd} -> ${serial}`)
if (this.locks[serial]) {
return false;
}
@ -164,7 +164,7 @@ class Arduino {
const end = new Date().getTime();
const ms = end - this.timer;
let complete;
console.log(`${serial} -> ${data}`);
//console.log(`${serial} -> ${data}`);
if (this.queue[data] !== undefined) {
this.locks[serial] = false;
complete = this.queue[data](ms); //execute callback

File diff suppressed because one or more lines are too long

View File

@ -116,7 +116,7 @@ class Arduino {
async send (serial : string, cmd : string) {
const device : any = this.alias[serial]
let results : any
console.log(`${cmd} -> ${serial}`)
//console.log(`${cmd} -> ${serial}`)
if (this.locks[serial]) {
return false
}
@ -174,7 +174,7 @@ class Arduino {
const end : number = new Date().getTime();
const ms : number = end - this.timer;
let complete : any;
console.log(`${serial} -> ${data}`);
//console.log(`${serial} -> ${data}`);
if (this.queue[data] !== undefined) {
this.locks[serial] = false;
complete = this.queue[data](ms); //execute callback