Skip to content

Commit

Permalink
fix: typo (thx @elecpower)
Browse files Browse the repository at this point in the history
  • Loading branch information
3djc authored and raphaelcoeffic committed Sep 3, 2023
1 parent eaa2152 commit c552980
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion radio/src/gui/common/stdlcd/radio_hardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion radio/src/gui/gui_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ bool isPotTypeAvailable(uint8_t type)
return true;
}

bool isFlexSwicthSourceValid(int source)
bool isFlexSwitchSourceValid(int source)
{
if (MAX_FLEX_SWITCHES == 0) return false;

Expand Down
2 changes: 1 addition & 1 deletion radio/src/gui/gui_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,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);
Expand Down

0 comments on commit c552980

Please sign in to comment.