Skip to content

Commit

Permalink
Merge pull request #10261 from bkleiner/increase-sa-level-max
Browse files Browse the repository at this point in the history
Increase SMARTAUDIO_MAX_POWER_COUNT to 8
  • Loading branch information
sensei-hacker authored Jul 30, 2024
2 parents 2ac8b7d + 13edf9c commit d2f15ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/main/io/vtx_smartaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ static vtxDevice_t vtxSmartAudio = {
.vTable = &saVTable,
.capability.bandCount = VTX_SMARTAUDIO_BAND_COUNT,
.capability.channelCount = VTX_SMARTAUDIO_CHANNEL_COUNT,
.capability.powerCount = VTX_SMARTAUDIO_MAX_POWER_COUNT,
.capability.powerCount = VTX_SMARTAUDIO_MAX_POWER_COUNT, // Should this be VTX_SMARTAUDIO_DEFAULT_POWER_COUNT?
.capability.bandNames = (char **)vtx58BandNames,
.capability.channelNames = (char **)vtx58ChannelNames,
.capability.powerNames = (char**)saPowerNames
Expand Down Expand Up @@ -124,7 +124,10 @@ saPowerTable_t saPowerTable[VTX_SMARTAUDIO_MAX_POWER_COUNT] = {
{ 200, 16 },
{ 500, 25 },
{ 800, 40 },
{ 0, 0 } // Placeholder
{ 0, 0 }, // Placeholders
{ 0, 0 },
{ 0, 0 },
{ 0, 0 }
};

// Last received device ('hard') states
Expand Down
2 changes: 1 addition & 1 deletion src/main/io/vtx_smartaudio.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#define VTX_SMARTAUDIO_BAND_COUNT (VTX_SMARTAUDIO_MAX_BAND - VTX_SMARTAUDIO_MIN_BAND + 1)
#define VTX_SMARTAUDIO_CHANNEL_COUNT (VTX_SMARTAUDIO_MAX_CHANNEL - VTX_SMARTAUDIO_MIN_CHANNEL + 1)

#define VTX_SMARTAUDIO_MAX_POWER_COUNT 5
#define VTX_SMARTAUDIO_MAX_POWER_COUNT 8
#define VTX_SMARTAUDIO_DEFAULT_POWER_COUNT 4
#define VTX_SMARTAUDIO_DEFAULT_POWER 1

Expand Down

0 comments on commit d2f15ee

Please sign in to comment.