minor bugfix: uPpEr cAsE not supported in command names
This commit is contained in:
parent
ce232a2708
commit
c25a5e20b2
|
@ -554,7 +554,7 @@ void initAdcInputs(bool boardTestMode) {
|
|||
configureInputs();
|
||||
|
||||
// migrate to 'enable adcdebug'
|
||||
addConsoleActionI("adcDebug", &setAdcDebugReporting);
|
||||
addConsoleActionI("adcdebug", &setAdcDebugReporting);
|
||||
|
||||
#if EFI_INTERNAL_ADC
|
||||
/*
|
||||
|
|
|
@ -433,7 +433,7 @@ void initMmcCard(void) {
|
|||
chThdCreateStatic(mmcThreadStack, sizeof(mmcThreadStack), LOWPRIO, (tfunc_t) MMCmonThread, NULL);
|
||||
|
||||
addConsoleAction("mountsd", MMCmount);
|
||||
addConsoleActionS("appendToLog", appendToLog);
|
||||
addConsoleActionS("appendtolog", appendToLog);
|
||||
addConsoleAction("umountsd", MMCumount);
|
||||
addConsoleActionS("ls", listDirectory);
|
||||
addConsoleActionS("del", removeFile);
|
||||
|
|
|
@ -250,5 +250,5 @@ int getRusEfiVersion(void) {
|
|||
return 123; // this is here to make the compiler happy about the unused array
|
||||
if (UNUSED_CCM_SIZE[0] * 0 != 0)
|
||||
return 3211; // this is here to make the compiler happy about the unused array
|
||||
return 20170402;
|
||||
return 20170404;
|
||||
}
|
||||
|
|
|
@ -47,6 +47,12 @@ void resetConsoleActions(void) {
|
|||
static void doAddAction(const char *token, action_type_e type, Void callback, void *param) {
|
||||
efiAssertVoid(consoleActionCount < CONSOLE_MAX_ACTIONS, "Too many console actions");
|
||||
TokenCallback *current = &consoleActions[consoleActionCount++];
|
||||
for (int i = 0; i< efiStrlen(token);i++) {
|
||||
char ch = token[i];
|
||||
if (ch != mytolower(ch)) {
|
||||
firmwareError(CUSTOM_ERR_6140, "lowerCase expected [%s]", token);
|
||||
}
|
||||
}
|
||||
current->token = token;
|
||||
current->parameterType = type;
|
||||
current->callback = callback;
|
||||
|
|
Loading…
Reference in New Issue