diff --git a/vulpes/src/main.cpp b/vulpes/src/main.cpp
index 922f2e5..3a7a81e 100644
--- a/vulpes/src/main.cpp
+++ b/vulpes/src/main.cpp
@@ -49,15 +49,19 @@ const char index_html[] PROGMEM = R"rawliteral(
}
@@ -304,18 +308,18 @@ void setup() {
writeFile(SPIFFS, "/inputString.txt", inputMessage.c_str());
}
// GET inputInt value on /get?inputInt=
- else if (request->hasParam(PARAM_INT)) {
+ if (request->hasParam(PARAM_INT)) {
inputMessage = request->getParam(PARAM_INT)->value();
writeFile(SPIFFS, "/inputInt.txt", inputMessage.c_str());
}
// GET inputFloat value on /get?inputFloat=
- else if (request->hasParam(PARAM_FLOAT)) {
+ if (request->hasParam(PARAM_FLOAT)) {
inputMessage = request->getParam(PARAM_FLOAT)->value();
writeFile(SPIFFS, "/inputFloat.txt", inputMessage.c_str());
}
- else {
- inputMessage = "No message sent";
- }
+ // else {
+ // inputMessage = "No message sent";
+ // }
Serial.println(inputMessage);
request->send(200, "text/plain", inputMessage);
@@ -353,14 +357,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 != 0) & (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 != 0) & (morseLed.IsRunning() == true)){
morseLed.Update();
// if you don't want to send code
} else {