Skip to content

Commit

Permalink
fix(bw): incorrect navigation in advanced USB setup on X9 radios (#5082)
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz authored and pfeerick committed May 29, 2024
1 parent 15414b9 commit 5ca9880
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions radio/src/gui/common/stdlcd/model_usbjoystick.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void menuModelUSBJoystickOne(event_t event)

void onUSBJoystickMenu(const char *result)
{
int8_t sub = menuVerticalPosition - HEADER_LINE;
int8_t sub = menuVerticalPosition;
USBJoystickChData * cs = usbJChAddress(sub);

if (result == STR_EDIT) {
Expand All @@ -188,12 +188,12 @@ void onUSBJoystickMenu(const char *result)

void menuModelUSBJoystick(event_t event)
{
check_submenu_simple(event, USBJ_MAX_JOYSTICK_CHANNELS - HEADER_LINE);
check_submenu_simple(event, USBJ_MAX_JOYSTICK_CHANNELS);
title(STR_USBJOYSTICK_LABEL);

if (s_editMode > 0) s_editMode = 0;

int8_t sub = menuVerticalPosition - HEADER_LINE;
int8_t sub = menuVerticalPosition;

coord_t y = 0;
uint8_t k = 0;
Expand Down

0 comments on commit 5ca9880

Please sign in to comment.