Skip to content

Commit

Permalink
vtx: fix VTX_SETTINGS_POWER_COUNT and add dummy entries to saPowerNames
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Aug 9, 2024
1 parent d00840e commit afea9fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/drivers/vtx_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

#if defined(USE_VTX_SMARTAUDIO) || defined(USE_VTX_TRAMP) || defined(USE_VTX_MSP)

#define VTX_SETTINGS_POWER_COUNT 5
#define VTX_SETTINGS_POWER_COUNT 8
#define VTX_SETTINGS_DEFAULT_POWER 1
#define VTX_SETTINGS_MIN_POWER 1
#define VTX_SETTINGS_MIN_USER_FREQ 5000
Expand Down
4 changes: 2 additions & 2 deletions src/main/io/vtx_smartaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
static serialPort_t *smartAudioSerialPort = NULL;

uint8_t saPowerCount = VTX_SMARTAUDIO_DEFAULT_POWER_COUNT;
const char * saPowerNames[VTX_SMARTAUDIO_MAX_POWER_COUNT + 1] = {
"----", "25 ", "200 ", "500 ", "800 ", " "
const char *saPowerNames[VTX_SMARTAUDIO_MAX_POWER_COUNT + 1] = {
"----", "25 ", "200 ", "500 ", "800 ", " ", " ", " ", " "
};

// Save powerlevels reported from SA 2.1 devices here
Expand Down

0 comments on commit afea9fe

Please sign in to comment.