fuking bugs fixed!

This commit is contained in:
Dmitry Borisenko
2020-04-22 20:35:50 +02:00
parent 990bd6fb47
commit 696c51b113
33 changed files with 101 additions and 69 deletions

View File

@@ -342,6 +342,7 @@ void stepperSet() {
count++;
String pin_step = selectToMarker (jsonRead(optionJson, "stepper1"), " ");
digitalWrite(pin_step.toInt(), !digitalRead(pin_step.toInt()));
yield();
if (count > steps_int) {
digitalWrite(pin_step.toInt(), LOW);
ts.remove(STEPPER1);
@@ -356,6 +357,7 @@ void stepperSet() {
count++;
String pin_step = selectToMarker (jsonRead(optionJson, "stepper2"), " ");
digitalWrite(pin_step.toInt(), !digitalRead(pin_step.toInt()));
yield();
if (count > steps_int) {
digitalWrite(pin_step.toInt(), LOW);
ts.remove(STEPPER2);