We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1fd27d0 + 425af35 commit ffbb091Copy full SHA for ffbb091
1 file changed
src/hal/components/carousel.comp
@@ -471,7 +471,12 @@ FUNCTION(_){
471
old_index = (sense(0) && sense(1));
472
break; // So that we don't see the tool1 pulse twice
473
case 20: //jogging fwd/rev
474
- if (current_position != target) return;
+ if (current_position != target){
475
+ deb = debounce;
476
+ return;
477
+ } else if (deb-- >0) {
478
479
+ }
480
if (align_dc != 0 && ! align_pin) return;
481
motor_fwd = 0;
482
motor_rev = 0;
0 commit comments