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:
andy pugh 2018-07-29 21:47:22 +01:00
parent 597f5efebe
commit cd0833a7ec

View file

@ -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: