refactor out console context menus - #510

This commit is contained in:
proddy
2020-09-23 00:19:51 +02:00
parent 6763bb2832
commit b1f10fa5ee
33 changed files with 295 additions and 489 deletions

View File

@@ -52,7 +52,7 @@ void EMSESPAPIService::emsespAPIService(AsyncWebServerRequest * request) {
String cmd = request->getParam(F_(cmd))->value();
// look up command in our list
if (!Command::find(device_type, cmd.c_str())) {
if (!Command::find_command(device_type, cmd.c_str())) {
request->send(400, "text/plain", F("Invalid cmd"));
return;
}