carousel.comp: Fix an error introduced by the last change
Adding support for Emco / Denford toolchangers indirectly broke most most existing tool changers. Signed-off-by: andy pugh <andy@bodgesoc.org>
This commit is contained in:
parent
597f5efebe
commit
cd0833a7ec
1 changed files with 2 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ FUNCTION(_){
|
|||
case 'E': // index + position, both edges.
|
||||
p = current_position;
|
||||
if (homed){
|
||||
if ( !old_index == sense(1) ){
|
||||
if ( old_index != sense(1) ){
|
||||
if (motor_fwd){
|
||||
p += 1;
|
||||
if (p > inst_pockets) p -= inst_pockets;
|
||||
|
|
@ -307,6 +307,7 @@ FUNCTION(_){
|
|||
motor_rev = hold_dc;
|
||||
active = 0;
|
||||
if (enable) ready = 1;
|
||||
state = 4;
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
|
|
|
|||
Loading…
Reference in a new issue