Original project changes: Duktape: mark DuktapeConsoleCommand TODO, silence warning

This commit is contained in:
Carsten Schmiemann 2022-11-01 14:48:48 +01:00
parent d7944c8894
commit 54edebfb5b
2 changed files with 10 additions and 5 deletions

View File

@ -19,6 +19,10 @@ COMPONENT_SRCDIRS:=src yacclex
COMPONENT_ADD_LDFLAGS = -Wl,--whole-archive -l$(COMPONENT_NAME) -Wl,--no-whole-archive
COMPONENT_OBJS = src/dbc_app.o src/dbc_number.o src/dbc.o yacclex/dbc_tokeniser.o yacclex/dbc_parser.o
# silence warning about unused yy_flex_strncpy()
CFLAGS += -Wno-unused-function
CXXFLAGS += -Wno-unused-function
COMPONENT_EXTRA_CLEAN := $(COMPONENT_PATH)/yacclex/dbc_tokeniser.cpp \
$(COMPONENT_PATH)/yacclex/dbc_tokeniser.c \
$(COMPONENT_PATH)/yacclex/dbc_tokeniser.hpp \

View File

@ -1216,11 +1216,12 @@ void DukOvmsCommandRegisterRun(int verbosity, OvmsWriter* writer, OvmsCommand* c
ESP_LOGE(TAG, "Command '%s' cannot be found in registry",cmd->GetName());
return;
}
//else
// {
// DuktapeConsoleCommand* dcc = it->second;
// // Perform the callback
// }
else
{
// TODO
// DuktapeConsoleCommand* dcc = it->second;
// Perform the callback
}
}
bool OvmsDuktape::RegisterDuktapeConsoleCommand(