Removed reset and added config save button

This commit is contained in:
mrcory
2020-02-14 13:31:47 -05:00
parent d5cad76448
commit 6736599c7b
2 changed files with 6 additions and 6 deletions
+3 -5
View File
@@ -52,7 +52,7 @@ byte lastPosition = 2; //Storing a starting value
AccelStepper stepper = AccelStepper(ctrlType, stepPin, dirPin);
#endif
bool resetFlag = false;
bool configSaveFlag = false;
long int stepPosition = 0;
int connectAttempt = 0;
long int posNow = 0;
@@ -288,10 +288,8 @@ void loop() {
motorControl();
if (resetFlag == true) {
Serial.println("Reseting...");
delay(200);
ESP.reset();
if (configSaveFlag == true) {
configSave();
}
} //END LOOP
+3 -1
View File
@@ -79,7 +79,9 @@ BLYNK_WRITE(V32) { //Invert direction
}
BLYNK_WRITE(V33) { //Reset device for inverted setting
resetFlag = param.asInt();
configSaveFlag = param.asInt();
}
BLYNK_WRITE(V34) {
stepperSpeed[1] = param.asInt();
}