mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 03:20:00 +03:00
Removing STM specific defines from common_pre, and other cleanups (#12982)
Removing STM specific defines from common_pre, and other cleanup
This commit is contained in:
parent
0d96c7ec77
commit
d5d3ee88be
16 changed files with 72 additions and 55 deletions
|
@ -1910,7 +1910,7 @@ static void printLed(dumpFlags_t dumpMask, const ledConfig_t *ledConfigs, const
|
|||
char ledConfigBuffer[20];
|
||||
char ledConfigDefaultBuffer[20];
|
||||
headingStr = cliPrintSectionHeading(dumpMask, false, headingStr);
|
||||
for (uint32_t i = 0; i < LED_MAX_STRIP_LENGTH; i++) {
|
||||
for (uint32_t i = 0; i < LED_STRIP_MAX_LENGTH; i++) {
|
||||
ledConfig_t ledConfig = ledConfigs[i];
|
||||
generateLedConfig(&ledConfig, ledConfigBuffer, sizeof(ledConfigBuffer));
|
||||
bool equalsDefault = false;
|
||||
|
@ -1937,7 +1937,7 @@ static void cliLed(const char *cmdName, char *cmdline)
|
|||
} else {
|
||||
ptr = cmdline;
|
||||
i = atoi(ptr);
|
||||
if (i >= 0 && i < LED_MAX_STRIP_LENGTH) {
|
||||
if (i >= 0 && i < LED_STRIP_MAX_LENGTH) {
|
||||
ptr = nextArg(cmdline);
|
||||
if (parseLedStripConfig(i, ptr)) {
|
||||
generateLedConfig((ledConfig_t *)&ledStripStatusModeConfig()->ledConfigs[i], ledConfigBuffer, sizeof(ledConfigBuffer));
|
||||
|
@ -1946,7 +1946,7 @@ static void cliLed(const char *cmdName, char *cmdline)
|
|||
cliShowParseError(cmdName);
|
||||
}
|
||||
} else {
|
||||
cliShowArgumentRangeError(cmdName, "INDEX", 0, LED_MAX_STRIP_LENGTH - 1);
|
||||
cliShowArgumentRangeError(cmdName, "INDEX", 0, LED_STRIP_MAX_LENGTH - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue