From 57340768acb026a38a5e777fa9c4c0b7d96b5f8d Mon Sep 17 00:00:00 2001 From: 3djc Date: Thu, 10 Aug 2023 08:26:04 +0200 Subject: [PATCH] fix: typo (thx @elecpower) --- radio/src/gui/common/stdlcd/radio_hardware.cpp | 2 +- radio/src/gui/gui_common.cpp | 2 +- radio/src/gui/gui_common.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/radio/src/gui/common/stdlcd/radio_hardware.cpp b/radio/src/gui/common/stdlcd/radio_hardware.cpp index 2e7f7480613..78eac767910 100644 --- a/radio/src/gui/common/stdlcd/radio_hardware.cpp +++ b/radio/src/gui/common/stdlcd/radio_hardware.cpp @@ -524,7 +524,7 @@ void menuRadioHardware(event_t event) flags = menuHorizontalPosition == 0 ? attr : 0; auto source = switchGetFlexConfig(index); lcdDrawText(HW_SETTINGS_COLUMN1, y, (source < 0) ? STR_NONE : adcGetInputLabel(ADC_INPUT_FLEX, source), flags); - if (flags & (~RIGHT)) source = checkIncDec(event, source, -1, adcGetMaxInputs(ADC_INPUT_FLEX) - 1, (isModelMenuDisplayed()) ? EE_MODEL : EE_GENERAL, isFlexSwicthSourceValid); + if (flags & (~RIGHT)) source = checkIncDec(event, source, -1, adcGetMaxInputs(ADC_INPUT_FLEX) - 1, (isModelMenuDisplayed()) ? EE_MODEL : EE_GENERAL, isFlexSwitchSourceValid); switchConfigFlex(index, source); //Name diff --git a/radio/src/gui/gui_common.cpp b/radio/src/gui/gui_common.cpp index 670307280a4..3bbb7dda752 100644 --- a/radio/src/gui/gui_common.cpp +++ b/radio/src/gui/gui_common.cpp @@ -1222,7 +1222,7 @@ bool isPotTypeAvailable(uint8_t type) return true; } -bool isFlexSwicthSourceValid(int source) +bool isFlexSwitchSourceValid(int source) { if (MAX_FLEX_SWITCHES == 0) return false; diff --git a/radio/src/gui/gui_common.h b/radio/src/gui/gui_common.h index 4c9829e83a5..2097ae89bbc 100644 --- a/radio/src/gui/gui_common.h +++ b/radio/src/gui/gui_common.h @@ -100,7 +100,7 @@ bool isTelemetryProtocolAvailable(int protocol); bool isTrainerModeAvailable(int mode); bool isAssignableFunctionAvailable(int function, CustomFunctionData * functions); bool isPotTypeAvailable(uint8_t type); -bool isFlexSwicthSourceValid(int source); +bool isFlexSwitchSourceValid(int source); bool getPotInversion(int index); void setPotInversion(int index, bool value); uint8_t getPotType(int index);