Skip to content

Commit c428cc9

Browse files
Merge pull request #11190 from sensei-hacker/feature-vtx-power-min
MSP: Add minimum power index to MSP_VTX_CONFIG
2 parents 77c677d + 43fe3ab commit c428cc9

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,7 @@ launch.json
4646
# Assitnow token and files for test script
4747
tokens.yaml
4848
*.ubx
49+
50+
# Local development files
51+
.semgrepignore
52+
build_sitl/

src/main/fc/fc_msp.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,6 +1550,12 @@ static bool mspFcProcessOutCommand(uint16_t cmdMSP, sbuf_t *dst, mspPostProcessF
15501550
sbufWriteU8(dst, vtxDevice->capability.bandCount);
15511551
sbufWriteU8(dst, vtxDevice->capability.channelCount);
15521552
sbufWriteU8(dst, vtxDevice->capability.powerCount);
1553+
1554+
uint8_t minPowerIndex = 1;
1555+
if (deviceType == VTXDEV_MSP) {
1556+
minPowerIndex = 0;
1557+
}
1558+
sbufWriteU8(dst, minPowerIndex);
15531559
}
15541560
else {
15551561
sbufWriteU8(dst, VTXDEV_UNKNOWN); // no VTX configured

0 commit comments

Comments
 (0)