From d12b230db2c5677d7b4e58433cce2f7986fb2afc Mon Sep 17 00:00:00 2001 From: giacomo892 Date: Tue, 3 Oct 2017 18:08:45 +0200 Subject: [PATCH] fix typos in function names --- src/main/fc/fc_msp.c | 2 +- src/main/fc/fc_msp_box.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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];