Skip to content

Commit

Permalink
Fix profile count in CMS Copy Profiles (rotorflight#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersHoglund authored Jun 28, 2024
1 parent fea3988 commit 2459294
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/cms/cms_menu_imu.c
Original file line number Diff line number Diff line change
Expand Up @@ -890,11 +890,14 @@ static const char * const cmsx_ProfileNames[] = {
"-",
"1",
"2",
"3"
"3",
"4",
"5",
"6"
};

static OSD_TAB_t cmsx_PidProfileTable = { &cmsx_dstPidProfile, 3, cmsx_ProfileNames };
static OSD_TAB_t cmsx_ControlRateProfileTable = { &cmsx_dstControlRateProfile, 3, cmsx_ProfileNames };
static OSD_TAB_t cmsx_PidProfileTable = { &cmsx_dstPidProfile, PID_PROFILE_COUNT, cmsx_ProfileNames };
static OSD_TAB_t cmsx_ControlRateProfileTable = { &cmsx_dstControlRateProfile, CONTROL_RATE_PROFILE_COUNT, cmsx_ProfileNames };

static const void *cmsx_menuCopyProfile_onEnter(displayPort_t *pDisp)
{
Expand Down

0 comments on commit 2459294

Please sign in to comment.