Closed benjaminwp18 closed 4 months ago
@benjaminwp18 One thing it might be nice to turn this into a parser function.
if (command.startsWith("submerge")) {
printRFStatus = false;
sendCommand("submerge");
}
else if (command.startsWith("suck")) {
sendCommand("suck");
}
else if (command.startsWith("pump")) {
sendCommand("pump");
}
else if (command.startsWith("stop")) {
sendCommand("stop");
}
else if (command.startsWith("return")) {
sendCommand("return");
}
else {
Serial.println("Invalid command; not sending");
}
But if not then lgtm!
Pull Request
What type of PR is this? (check all applicable)