From 13ddf853edaa8390ec4b8b87699694ea7e8f07b8 Mon Sep 17 00:00:00 2001 From: mattbk Date: Thu, 31 Aug 2023 11:52:11 -0500 Subject: [PATCH] Use a dropdown for program setting. --- vulpes/src/main.cpp | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/vulpes/src/main.cpp b/vulpes/src/main.cpp index b840c45..7874087 100644 --- a/vulpes/src/main.cpp +++ b/vulpes/src/main.cpp @@ -55,17 +55,13 @@ const char index_html[] PROGMEM = R"rawliteral(
inputString (current value %inputString%):
- - Seconds between flash (current value %inputInt%):
- + + Sending program: +
+ inputFloat (current value %inputFloat%):
@@ -144,7 +140,7 @@ void writeFile(fs::FS &fs, const char * path, const char * message){ file.close(); } -// Replaces placeholder with stored values +// Replaces placeholder in web UI with stored values String processor(const String& var){ //Serial.println(var); if(var == "inputString"){ @@ -365,14 +361,14 @@ void loop() { // float yourInputFloat = readFile(SPIFFS, "/inputFloat.txt").toFloat(); // if you want to send code, and it's not sending, then start it up - if((yourInputInt != 0) & (morseLed.IsRunning() == false)){ + if((yourInputInt == 1) & (morseLed.IsRunning() == false)){ //jled morseLed.Reset().Update(); //morse.send("CQ CQ CQ DE W1CDN K"); //etherkit morse //telegraph26.send("CQ CQ CQ DE W1CDN K"); //telegraph // if you want to send code, and it is sending, keep sending - } else if((yourInputInt != 0) & (morseLed.IsRunning() == true)){ + } else if((yourInputInt == 1) & (morseLed.IsRunning() == true)){ morseLed.Update(); // if you don't want to send code } else {