Skip to content

Commit

Permalink
CMS profile copy updated according to comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersHoglund committed Jun 28, 2024
1 parent 6f4327a commit 3b2b242
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions src/main/cms/cms_menu_imu.c
Original file line number Diff line number Diff line change
Expand Up @@ -886,27 +886,14 @@ static CMS_Menu cmsx_menuFilterPerProfile = {
static uint8_t cmsx_dstPidProfile;
static uint8_t cmsx_dstControlRateProfile;

#if PID_PROFILE_COUNT >= CONTROL_RATE_PROFILE_COUNT
#define PROFILE_COUNT PID_PROFILE_COUNT
#else
#define PROFILE_COUNT CONTROL_RATE_PROFILE_COUNT
#endif

static const char * const cmsx_ProfileNames[PROFILE_COUNT+1] = {
static const char * const cmsx_ProfileNames[] = {
"-",
"1",
"2",
"3"
#if PROFILE_COUNT >= 4
,"4"
#endif
#if PROFILE_COUNT >= 5
,"5"
#endif
#if PROFILE_COUNT >= 6
,"6"
#endif

"3",
"4",
"5",
"6"
};

static OSD_TAB_t cmsx_PidProfileTable = { &cmsx_dstPidProfile, PID_PROFILE_COUNT, cmsx_ProfileNames };
Expand Down

0 comments on commit 3b2b242

Please sign in to comment.