mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +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
|
@ -1721,7 +1721,7 @@ case MSP_NAME:
|
|||
|
||||
#ifdef USE_LED_STRIP
|
||||
case MSP_LED_STRIP_CONFIG:
|
||||
for (int i = 0; i < LED_MAX_STRIP_LENGTH; i++) {
|
||||
for (int i = 0; i < LED_STRIP_MAX_LENGTH; i++) {
|
||||
#ifdef USE_LED_STRIP_STATUS_MODE
|
||||
const ledConfig_t *ledConfig = &ledStripStatusModeConfig()->ledConfigs[i];
|
||||
sbufWriteU32(dst, *ledConfig);
|
||||
|
@ -3824,7 +3824,7 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, int16_t cmdMSP,
|
|||
case MSP_SET_LED_STRIP_CONFIG:
|
||||
{
|
||||
i = sbufReadU8(src);
|
||||
if (i >= LED_MAX_STRIP_LENGTH || dataSize != (1 + 4)) {
|
||||
if (i >= LED_STRIP_MAX_LENGTH || dataSize != (1 + 4)) {
|
||||
return MSP_RESULT_ERROR;
|
||||
}
|
||||
#ifdef USE_LED_STRIP_STATUS_MODE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue