diff --git a/src/main/fc/fc_msp.c b/src/main/fc/fc_msp.c index dc00c46818..c9b337c9f8 100644 --- a/src/main/fc/fc_msp.c +++ b/src/main/fc/fc_msp.c @@ -1210,7 +1210,7 @@ static mspResult_e mspFcProcessInCommand(uint16_t cmdMSP, sbuf_t *src) if (i < MAX_MODE_ACTIVATION_CONDITION_COUNT) { modeActivationCondition_t *mac = modeActivationConditionsMutable(i); i = sbufReadU8(src); - const box_t *box = findBoxByPermenantId(i); + const box_t *box = findBoxByPermanentId(i); if (box) { mac->modeId = box->boxId; mac->auxChannelIndex = sbufReadU8(src); diff --git a/src/main/fc/fc_msp_box.c b/src/main/fc/fc_msp_box.c index f64e89ef45..118f664174 100644 --- a/src/main/fc/fc_msp_box.c +++ b/src/main/fc/fc_msp_box.c @@ -89,7 +89,7 @@ const box_t *findBoxByActiveBoxId(uint8_t activeBoxId) return NULL; } -const box_t *findBoxByPermenantId(uint8_t permenantId) +const box_t *findBoxByPermanentId(uint8_t permenantId) { for (uint8_t boxIndex = 0; boxIndex < sizeof(boxes) / sizeof(box_t); boxIndex++) { const box_t *candidate = &boxes[boxIndex];