Skip to content

Commit

Permalink
controller/interpolator: allow homing when in manual state
Browse files Browse the repository at this point in the history
  • Loading branch information
nraynaud committed Nov 25, 2015
1 parent 7fd37ae commit a0da592
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions interpolator/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ static int startStep(step_t step) {
int startHoming() {
switch (cncMemory.state) {
case READY:
case MANUAL_CONTROL:
STM_EVAL_LEDOn(LED3);
cncMemory.state = HOMING;
return 1;
Expand Down
2 changes: 1 addition & 1 deletion webapp/controllerEmber.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ require(['Ember', 'templates', 'cnc/ui/views', 'cnc/controller/CNCMachine'], fun
isProgramRunnable: Ember.computed.and('canInterpolatorReceiveProgram', 'camCanSendProgram'),
isNotProgramRunnable: Ember.computed.not('isProgramRunnable'),
isProgramAbortable: createCurrentStateProperty('RUNNING_PROGRAM', 'PAUSED_PROGRAM', 'HOMING'),
isHomable: createCurrentStateProperty('READY'),
isHomable: createCurrentStateProperty('READY', 'MANUAL_CONTROL'),
isBusy: createCurrentStateProperty('RUNNING_PROGRAM', 'HOMING'),
isResumable: createCurrentStateProperty('PAUSED_PROGRAM'),
spindleButtonLabel: function () {
Expand Down

0 comments on commit a0da592

Please sign in to comment.