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(
@@ -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 {