1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 04:45:24 +03:00

Review comment fixes

This commit is contained in:
phobos- 2022-08-08 18:33:29 +02:00
parent 9d70ed5079
commit 4ca3b9428f
6 changed files with 44 additions and 46 deletions

View file

@ -62,7 +62,7 @@ static uint16_t mspConfFreq = 0;
static uint8_t mspConfBand = 0;
static uint8_t mspConfChannel = 0;
static uint16_t mspConfPower = 0;
static uint8_t mspConfPitMode = 0;
static uint8_t mspConfPitMode = 0;
static bool mspVtxConfigChanged = false;
static timeUs_t mspVtxLastTimeUs = 0;
static bool prevLowPowerDisarmedState = false;
@ -98,9 +98,9 @@ void setMspVtxDeviceStatusReady(const int descriptor)
}
}
STATIC_UNIT_TESTED void prepareMspFrame(uint8_t *mspFrame)
void prepareMspFrame(uint8_t *mspFrame)
{
mspFrame[0] = VTXDEV_MSP;
mspFrame[0] = VTXDEV_MSP;
mspFrame[1] = vtxSettingsConfig()->band;
mspFrame[2] = vtxSettingsConfig()->channel;
mspFrame[3] = isLowPowerDisarmed() ? 1 : vtxSettingsConfig()->power; // index based