|
@@ -505,11 +505,11 @@ int Atm_AccelStepper::limitLow_avg(bool limistate){
|
|
} else {
|
|
} else {
|
|
limitLow_buf_head++;
|
|
limitLow_buf_head++;
|
|
}
|
|
}
|
|
- for (int i =0; i<limit_buf_size; i++){
|
|
|
|
- Serial.print(limitLow_state_buf[i]);
|
|
|
|
- Serial.print(" ");
|
|
|
|
- }
|
|
|
|
- Serial.println();
|
|
|
|
|
|
+ // for (int i =0; i<limit_buf_size; i++){
|
|
|
|
+ // Serial.print(limitLow_state_buf[i]);
|
|
|
|
+ // Serial.print(" ");
|
|
|
|
+ // }
|
|
|
|
+ // Serial.println();
|
|
return limitLow_state_total > limit_buf_size / 2; //all values should agree
|
|
return limitLow_state_total > limit_buf_size / 2; //all values should agree
|
|
}
|
|
}
|
|
|
|
|