diff --git a/source/ESP_Code/ESP_Code.ino b/source/ESP_Code/ESP_Code.ino index 70cad85..64369b8 100644 --- a/source/ESP_Code/ESP_Code.ino +++ b/source/ESP_Code/ESP_Code.ino @@ -90,6 +90,9 @@ void runpayload() { // 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; char keyarray[str_len]; @@ -105,6 +108,7 @@ void runpayload() { if(cmd == "Rem") { cmdinput = String(strtok_r(NULL,":",&i)); + DelayLength = 1500; } else if(cmd == "DefaultDelay") { @@ -118,13 +122,10 @@ void runpayload() { 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); - else { - Serial.println(line); - } 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 e5ad5f2..07d489e 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 ec4f453..4aea3dc 100644 --- a/source/ESP_Code/version.h +++ b/source/ESP_Code/version.h @@ -1,2 +1,2 @@ -String version = "2.3.5"; +String version = "2.3.6"; String latestardversion = "2.1";