Add more trycatches add more logs. Not sure where failure is.

This commit is contained in:
Matt McWilliams 2024-04-06 20:00:54 -04:00
parent b7e2e912f4
commit da735779b4
10 changed files with 17 additions and 16 deletions

View File

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

View File

@ -74,15 +74,15 @@ class Devices {
if (typeof arg !== 'undefined' && typeof arg.timing !== 'undefined') {
timing.restore(arg.timing);
}
if (arg.projector_second) {
if (typeof arg !== 'undefined' && typeof arg.projector_second !== 'undefined') {
//add second row of projector pads to grid
proj.second.enable();
}
if (arg.camera_second) {
if (typeof arg !== 'undefined' && typeof arg.camera_second !== 'undefined') {
//add second row of camera pads to grid
cam.second.enable();
}
if (arg.capper) {
if (typeof arg !== 'undefined' && typeof arg.capper !== 'undefined') {
//add capper features to grid
capper.enable();
}
@ -91,6 +91,7 @@ class Devices {
grid.state(0);
grid.state(1);
seq.stats();
log.info('Got past stats');
//@ts-ignore
yield delay(1000);
try {

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.97",
"version": "1.8.98",
"lockfileVersion": 2,
"requires": true,
"packages": {

View File

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

View File

@ -74,15 +74,15 @@ class Devices {
timing.restore(arg.timing);
}
if (arg.projector_second) {
if (typeof arg !== 'undefined' && typeof arg.projector_second !== 'undefined') {
//add second row of projector pads to grid
proj.second.enable();
}
if (arg.camera_second) {
if (typeof arg !== 'undefined' && typeof arg.camera_second !== 'undefined') {
//add second row of camera pads to grid
cam.second.enable();
}
if (arg.capper) {
if (typeof arg !== 'undefined' && typeof arg.capper !== 'undefined') {
//add capper features to grid
capper.enable();
}
@ -92,7 +92,7 @@ class Devices {
grid.state(0);
grid.state(1);
seq.stats();
log.info('Got past stats');
//@ts-ignore
await delay(1000);

View File

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

4
package-lock.json generated
View File

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

View File

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

View File

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