Rename all uses of the previously-named "digital" module to "filmout" in sequence module. Woo! Let's call that a patch.

This commit is contained in:
mmcwilliams 2019-06-18 16:54:08 -04:00
parent ede6fcdfb8
commit 717cf77e55
12 changed files with 32 additions and 32 deletions

View File

@ -89,8 +89,8 @@ class Sequencer {
//start sequence
this.log.info(`Starting sequence...`);
this.ui.send(this.id, { start: true });
if (this.cmd.proj.dig.state.enabled === true) {
await this.cmd.proj.dig.display.open();
if (this.cmd.proj.filmout.state.enabled === true) {
await this.cmd.proj.filmout.display.open();
}
for (let x = 0; x < this.loops; x++) {
//start loop
@ -121,8 +121,8 @@ class Sequencer {
this.log.info(`Ended loop ${x + 1}`);
this.ui.send(this.id, { loop: x, stop: true });
}
if (this.cmd.proj.dig.state.enabled === true) {
await this.cmd.proj.dig.display.close();
if (this.cmd.proj.filmout.state.enabled === true) {
await this.cmd.proj.filmout.display.close();
}
ms = (+new Date()) - startTime;
//end sequence
@ -137,8 +137,8 @@ class Sequencer {
* Stop the sequence
**/
stop() {
if (this.cmd.proj.dig.state.enabled === true) {
this.cmd.proj.dig.display.close();
if (this.cmd.proj.filmout.state.enabled === true) {
this.cmd.proj.filmout.display.close();
}
this.running = false;
//clear?

File diff suppressed because one or more lines are too long

View File

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

View File

@ -89,8 +89,8 @@ class Sequencer {
//start sequence
this.log.info(`Starting sequence...`);
this.ui.send(this.id, { start: true });
if (this.cmd.proj.dig.state.enabled === true) {
await this.cmd.proj.dig.display.open();
if (this.cmd.proj.filmout.state.enabled === true) {
await this.cmd.proj.filmout.display.open();
}
for (let x = 0; x < this.loops; x++) {
//start loop
@ -121,8 +121,8 @@ class Sequencer {
this.log.info(`Ended loop ${x + 1}`);
this.ui.send(this.id, { loop: x, stop: true });
}
if (this.cmd.proj.dig.state.enabled === true) {
await this.cmd.proj.dig.display.close();
if (this.cmd.proj.filmout.state.enabled === true) {
await this.cmd.proj.filmout.display.close();
}
ms = (+new Date()) - startTime;
//end sequence
@ -137,8 +137,8 @@ class Sequencer {
* Stop the sequence
**/
stop() {
if (this.cmd.proj.dig.state.enabled === true) {
this.cmd.proj.dig.display.close();
if (this.cmd.proj.filmout.state.enabled === true) {
this.cmd.proj.filmout.display.close();
}
this.running = false;
//clear?

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "mcopy-cli",
"version": "1.4.11",
"version": "1.4.12",
"description": "CLI for controlling the mcopy optical printer platform",
"main": "index.js",
"scripts": {

View File

@ -1,5 +1,5 @@
{
"version": "1.4.11",
"version": "1.4.12",
"ext_port": 1111,
"profiles": {
"mcopy": {

View File

@ -89,8 +89,8 @@ class Sequencer {
//start sequence
this.log.info(`Starting sequence...`);
this.ui.send(this.id, { start: true });
if (this.cmd.proj.dig.state.enabled === true) {
await this.cmd.proj.dig.display.open();
if (this.cmd.proj.filmout.state.enabled === true) {
await this.cmd.proj.filmout.display.open();
}
for (let x = 0; x < this.loops; x++) {
//start loop
@ -121,8 +121,8 @@ class Sequencer {
this.log.info(`Ended loop ${x + 1}`);
this.ui.send(this.id, { loop: x, stop: true });
}
if (this.cmd.proj.dig.state.enabled === true) {
await this.cmd.proj.dig.display.close();
if (this.cmd.proj.filmout.state.enabled === true) {
await this.cmd.proj.filmout.display.close();
}
ms = (+new Date()) - startTime;
//end sequence
@ -137,8 +137,8 @@ class Sequencer {
* Stop the sequence
**/
stop() {
if (this.cmd.proj.dig.state.enabled === true) {
this.cmd.proj.dig.display.close();
if (this.cmd.proj.filmout.state.enabled === true) {
this.cmd.proj.filmout.display.close();
}
this.running = false;
//clear?

File diff suppressed because one or more lines are too long

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "mcopy",
"version": "1.4.11",
"version": "1.4.12",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

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

View File

@ -107,8 +107,8 @@ class Sequencer {
this.log.info(`Starting sequence...`)
this.ui.send(this.id, { start : true })
if (this.cmd.proj.dig.state.enabled === true) {
await this.cmd.proj.dig.display.open()
if (this.cmd.proj.filmout.state.enabled === true) {
await this.cmd.proj.filmout.display.open()
}
for (let x = 0; x < this.loops; x++) {
@ -147,8 +147,8 @@ class Sequencer {
this.ui.send(this.id, { loop : x, stop : true });
}
if (this.cmd.proj.dig.state.enabled === true) {
await this.cmd.proj.dig.display.close();
if (this.cmd.proj.filmout.state.enabled === true) {
await this.cmd.proj.filmout.display.close();
}
ms = ( +new Date() ) - startTime;
@ -166,8 +166,8 @@ class Sequencer {
* Stop the sequence
**/
public stop () {
if (this.cmd.proj.dig.state.enabled === true) {
this.cmd.proj.dig.display.close();
if (this.cmd.proj.filmout.state.enabled === true) {
this.cmd.proj.filmout.display.close();
}
this.running = false;
//clear?