List of devices looks strange on laptop. Attempt at fix here

This commit is contained in:
Matt McWilliams 2024-04-06 20:10:14 -04:00
parent da735779b4
commit 2779258111
10 changed files with 15 additions and 14 deletions

View File

@ -1,5 +1,5 @@
{ {
"version": "1.8.98", "version": "1.8.99",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {

View File

@ -38,8 +38,8 @@ class Devices {
$('#cam_time').removeAttr('readonly'); $('#cam_time').removeAttr('readonly');
} }
for (let i in arg) { for (let i in arg) {
if (typeof arg[i].arduino !== 'undefined' && arg[i].arduino !== '/dev/fake') {
devs.push(arg[i].arduino); devs.push(arg[i].arduino);
if (arg[i].arduino && arg[i].arduino !== '/dev/fake') {
if (notify === 'Connected to ') { if (notify === 'Connected to ') {
notify += arg[i].arduino + ' '; notify += arg[i].arduino + ' ';
} }
@ -86,6 +86,7 @@ class Devices {
//add capper features to grid //add capper features to grid
capper.enable(); capper.enable();
} }
log.info("Before stats");
seq.set(0, cfg.cmd.camera_forward); seq.set(0, cfg.cmd.camera_forward);
seq.set(1, cfg.cmd.projector_forward); seq.set(1, cfg.cmd.projector_forward);
grid.state(0); grid.state(0);

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.98", "version": "1.8.99",
"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.98", "version": "1.8.99",
"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

@ -35,8 +35,8 @@ class Devices {
} }
for (let i in arg) { for (let i in arg) {
if (typeof arg[i].arduino !== 'undefined' && arg[i].arduino !== '/dev/fake') {
devs.push(arg[i].arduino); devs.push(arg[i].arduino);
if (arg[i].arduino && arg[i].arduino !== '/dev/fake') {
if (notify === 'Connected to ') { if (notify === 'Connected to ') {
notify += arg[i].arduino + ' '; notify += arg[i].arduino + ' ';
} else { } else {
@ -86,7 +86,7 @@ class Devices {
//add capper features to grid //add capper features to grid
capper.enable(); capper.enable();
} }
log.info("Before stats");
seq.set(0, cfg.cmd.camera_forward); seq.set(0, cfg.cmd.camera_forward);
seq.set(1, cfg.cmd.projector_forward); seq.set(1, cfg.cmd.projector_forward);
grid.state(0); grid.state(0);

View File

@ -1,5 +1,5 @@
{ {
"version": "1.8.98", "version": "1.8.99",
"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.98", "version": "1.8.99",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "mcopy", "name": "mcopy",
"version": "1.8.98", "version": "1.8.99",
"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.98", "version": "1.8.99",
"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.98", "version": "1.8.99",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {