diff --git a/source/ESP_Code/ESP_Code.ino b/source/ESP_Code/ESP_Code.ino
index 64369b8..e005f56 100644
--- a/source/ESP_Code/ESP_Code.ino
+++ b/source/ESP_Code/ESP_Code.ino
@@ -86,12 +86,12 @@ void runpayload() {
int defaultdelay = DelayLength;
int settingsdefaultdelay = DelayLength;
int custom_delay;
+ delay(livepayloaddelay);
while(f.available()) {
// SOFTserial.println(line);
// Serial.println(line);
String line = f.readStringUntil('\n');
line.replace("<", "<");
- Serial.println(line);
String fullkeys = line;
int str_len = fullkeys.length()+1;
@@ -108,7 +108,7 @@ void runpayload() {
if(cmd == "Rem") {
cmdinput = String(strtok_r(NULL,":",&i));
- DelayLength = 1500;
+ DelayLength = 0;
}
else if(cmd == "DefaultDelay") {
@@ -125,6 +125,9 @@ void runpayload() {
DelayLength = custom_delay;
// Serial.println(String()+"Custom delay set to:"+custom_delay);
}
+ else {
+ Serial.println(line);
+ }
// Serial.println(DelayLength);
delay(DelayLength); //delay between lines in payload, I found running it slower works best
DelayLength = defaultdelay;
@@ -206,7 +209,7 @@ void settingsPage()
"
"
"Payload Settings:
"
"Delay Between Sending Lines of Code in Payload:
milliseconds (Default: 2000)
"
- "Delay Before Starting a Live Payload:
milliseconds (Default: 3000)
"
+ "Delay Before Starting a Live or Auto Deploy Payload:
milliseconds (Default: 3000)
"
"Automatically Deploy Payload Upon Insetion
"
"Yes
"
"No
"
@@ -621,6 +624,7 @@ void setup(void)
if(cmd == "Rem") {
cmdinput = String(strtok_r(NULL,":",&i));
+ DelayLength = 0;
}
else if(cmd == "DefaultDelay") {
@@ -634,7 +638,7 @@ void setup(void)
cmdinput = String(strtok_r(NULL,":",&i));
String customdelay = cmdinput;
custom_delay = customdelay.toInt();
- delay(custom_delay);
+ DelayLength = custom_delay;
// Serial.println(String()+"Custom delay set to:"+custom_delay);
}
// Serial.println(DelayLength);
@@ -725,7 +729,6 @@ void setup(void)
// Serial.println(line);
String line = f.readStringUntil('\n');
line.replace("<", "<");
- Serial.println(line);
String fullkeys = line;
int str_len = fullkeys.length()+1;
@@ -742,7 +745,7 @@ void setup(void)
if(cmd == "Rem") {
cmdinput = String(strtok_r(NULL,":",&i));
- DelayLength = 1500;
+ DelayLength = 0;
}
else if(cmd == "DefaultDelay") {
@@ -759,6 +762,9 @@ void setup(void)
DelayLength = custom_delay;
// Serial.println(String()+"Custom delay set to:"+custom_delay);
}
+ else {
+ Serial.println(line);
+ }
// Serial.println(DelayLength);
delay(DelayLength); //delay between lines in payload, I found running it slower works best
DelayLength = defaultdelay;
diff --git a/source/ESP_Code/ESP_Code.ino.generic.bin b/source/ESP_Code/ESP_Code.ino.generic.bin
index 07d489e..657b710 100644
Binary files a/source/ESP_Code/ESP_Code.ino.generic.bin and b/source/ESP_Code/ESP_Code.ino.generic.bin differ
diff --git a/source/ESP_Code/version.h b/source/ESP_Code/version.h
index 4aea3dc..c3a2dae 100644
--- a/source/ESP_Code/version.h
+++ b/source/ESP_Code/version.h
@@ -1,2 +1,2 @@
-String version = "2.3.6";
+String version = "2.3.7";
String latestardversion = "2.1";