Skip to content

Commit cda1205

Browse files
committed
Remove workflow context as it will no longer be used in CNCjs
1 parent 3c9d2bf commit cda1205

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/controller.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ class Controller {
7171
settings = {};
7272
state = {};
7373
workflow = {
74-
state: 'idle', // running|paused|idle
75-
context: {}
74+
state: 'idle' // running|paused|idle
7675
};
7776

7877
// @param {object} io The socket.io-client module.
@@ -120,7 +119,6 @@ class Controller {
120119
}
121120
if (eventName === 'workflow:state') {
122121
this.workflow.state = args[0];
123-
this.workflow.context = { ...args[1] };
124122
}
125123
if (eventName === 'controller:settings') {
126124
this.type = args[0];
@@ -227,6 +225,11 @@ class Controller {
227225
// controller.command('gcode:pause')
228226
// - Resume
229227
// controller.command('gcode:resume')
228+
// - Feeder
229+
// controller.command('feeder:feed')
230+
// controller.command('feeder:start')
231+
// controller.command('feeder:stop')
232+
// controller.command('feeder:clear')
230233
// - Feed Hold
231234
// controller.command('feedhold')
232235
// - Cycle Start

0 commit comments

Comments
 (0)