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

Fixed coding style.

This commit is contained in:
mikeller 2020-10-11 13:51:09 +13:00
parent a588d23a29
commit 25b325e59a

View file

@ -918,7 +918,7 @@ static void vtxSASetPowerByIndex(vtxDevice_t *vtxDevice, uint8_t index)
static void vtxSASetPitMode(vtxDevice_t *vtxDevice, uint8_t onoff)
{
static bool bLastOnOff = false;
static bool lastOnOff = false;
if (!vtxSAIsReady(vtxDevice) || saDevice.version < 2) {
return;
@ -930,10 +930,10 @@ static void vtxSASetPitMode(vtxDevice_t *vtxDevice, uint8_t onoff)
}
// Only issue pit mode commands on status change
if (bLastOnOff == onoff) {
if (lastOnOff == onoff) {
return;
}
bLastOnOff = onoff;
lastOnOff = onoff;
if (saDevice.version >= 3 && !saDevice.willBootIntoPitMode) {
if (onoff) {