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();
|
configureInputs();
|
||||||
|
|
||||||
// migrate to 'enable adcdebug'
|
// migrate to 'enable adcdebug'
|
||||||
addConsoleActionI("adcDebug", &setAdcDebugReporting);
|
addConsoleActionI("adcdebug", &setAdcDebugReporting);
|
||||||
|
|
||||||
#if EFI_INTERNAL_ADC
|
#if EFI_INTERNAL_ADC
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -433,7 +433,7 @@ void initMmcCard(void) {
|
||||||
chThdCreateStatic(mmcThreadStack, sizeof(mmcThreadStack), LOWPRIO, (tfunc_t) MMCmonThread, NULL);
|
chThdCreateStatic(mmcThreadStack, sizeof(mmcThreadStack), LOWPRIO, (tfunc_t) MMCmonThread, NULL);
|
||||||
|
|
||||||
addConsoleAction("mountsd", MMCmount);
|
addConsoleAction("mountsd", MMCmount);
|
||||||
addConsoleActionS("appendToLog", appendToLog);
|
addConsoleActionS("appendtolog", appendToLog);
|
||||||
addConsoleAction("umountsd", MMCumount);
|
addConsoleAction("umountsd", MMCumount);
|
||||||
addConsoleActionS("ls", listDirectory);
|
addConsoleActionS("ls", listDirectory);
|
||||||
addConsoleActionS("del", removeFile);
|
addConsoleActionS("del", removeFile);
|
||||||
|
|
|
@ -250,5 +250,5 @@ int getRusEfiVersion(void) {
|
||||||
return 123; // this is here to make the compiler happy about the unused array
|
return 123; // this is here to make the compiler happy about the unused array
|
||||||
if (UNUSED_CCM_SIZE[0] * 0 != 0)
|
if (UNUSED_CCM_SIZE[0] * 0 != 0)
|
||||||
return 3211; // this is here to make the compiler happy about the unused array
|
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) {
|
static void doAddAction(const char *token, action_type_e type, Void callback, void *param) {
|
||||||
efiAssertVoid(consoleActionCount < CONSOLE_MAX_ACTIONS, "Too many console actions");
|
efiAssertVoid(consoleActionCount < CONSOLE_MAX_ACTIONS, "Too many console actions");
|
||||||
TokenCallback *current = &consoleActions[consoleActionCount++];
|
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->token = token;
|
||||||
current->parameterType = type;
|
current->parameterType = type;
|
||||||
current->callback = callback;
|
current->callback = callback;
|
||||||
|
|
Loading…
Reference in New Issue