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,
"profiles": {
"mcopy": {

View File

@ -109,11 +109,11 @@ class Arduino {
**/
async sendAsync(device, cmd) {
return new Promise((resolve, reject) => {
this.log.info(`sendAsync ${cmd} -> ${device}`);
//this.log.info(`sendAsync ${cmd} -> ${device}`)
this.queue[cmd] = (ms) => {
return resolve(ms);
};
this.log.info(`Device: ${device}`);
//this.log.info(`Device: ${device}`)
return this.serial[this.alias[device]].write(cmd, (err, results) => {
if (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",
"version": "1.8.106",
"version": "1.8.107",
"lockfileVersion": 2,
"requires": true,
"packages": {

View File

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

View File

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

4
package-lock.json generated
View File

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

View File

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

View File

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

View File

@ -121,11 +121,11 @@ class Arduino {
**/
private async sendAsync (device : string, cmd : string) : Promise<number> {
return new Promise ((resolve, reject) => {
this.log.info(`sendAsync ${cmd} -> ${device}`)
//this.log.info(`sendAsync ${cmd} -> ${device}`)
this.queue[cmd] = (ms : number) => {
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) => {
if (err) {
//this.log.error(err)