Remove extraneous log lines from arduino. Device is printed by send() and also sendAsync is called by send and logs the same information. Removed.

This commit is contained in:
Matt McWilliams 2024-05-19 17:11:31 -04:00
parent 4b8c8ee842
commit a9f20ebf36
10 changed files with 13 additions and 13 deletions

View File

@ -1,5 +1,5 @@
{ {
"version": "1.8.106", "version": "1.8.107",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {

View File

@ -109,11 +109,11 @@ class Arduino {
**/ **/
async sendAsync(device, cmd) { async sendAsync(device, cmd) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.log.info(`sendAsync ${cmd} -> ${device}`); //this.log.info(`sendAsync ${cmd} -> ${device}`)
this.queue[cmd] = (ms) => { this.queue[cmd] = (ms) => {
return resolve(ms); return resolve(ms);
}; };
this.log.info(`Device: ${device}`); //this.log.info(`Device: ${device}`)
return this.serial[this.alias[device]].write(cmd, (err, results) => { return this.serial[this.alias[device]].write(cmd, (err, results) => {
if (err) { if (err) {
//this.log.error(err) //this.log.error(err)

File diff suppressed because one or more lines are too long

2
app/package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "mcopy-app", "name": "mcopy-app",
"version": "1.8.106", "version": "1.8.107",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {

View File

@ -1,6 +1,6 @@
{ {
"name": "mcopy-app", "name": "mcopy-app",
"version": "1.8.106", "version": "1.8.107",
"description": "GUI for the mcopy small gauge film optical printer platform", "description": "GUI for the mcopy small gauge film optical printer platform",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {

View File

@ -1,5 +1,5 @@
{ {
"version": "1.8.106", "version": "1.8.107",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "mcopy", "name": "mcopy",
"version": "1.8.106", "version": "1.8.107",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "mcopy", "name": "mcopy",
"version": "1.8.106", "version": "1.8.107",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"alert": "file:app/lib/alert", "alert": "file:app/lib/alert",

View File

@ -1,6 +1,6 @@
{ {
"name": "mcopy", "name": "mcopy",
"version": "1.8.106", "version": "1.8.107",
"description": "Small gauge film optical printer platform", "description": "Small gauge film optical printer platform",
"main": "build.js", "main": "build.js",
"directories": { "directories": {

View File

@ -1,5 +1,5 @@
{ {
"version": "1.8.106", "version": "1.8.107",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {

View File

@ -121,11 +121,11 @@ class Arduino {
**/ **/
private async sendAsync (device : string, cmd : string) : Promise<number> { private async sendAsync (device : string, cmd : string) : Promise<number> {
return new Promise ((resolve, reject) => { return new Promise ((resolve, reject) => {
this.log.info(`sendAsync ${cmd} -> ${device}`) //this.log.info(`sendAsync ${cmd} -> ${device}`)
this.queue[cmd] = (ms : number) => { this.queue[cmd] = (ms : number) => {
return resolve(ms) return resolve(ms)
} }
this.log.info(`Device: ${device}`) //this.log.info(`Device: ${device}`)
return this.serial[this.alias[device]].write(cmd, (err : any, results : any) => { return this.serial[this.alias[device]].write(cmd, (err : any, results : any) => {
if (err) { if (err) {
//this.log.error(err) //this.log.error(err)