1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 21:35:44 +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 void vtxSASetPitMode(vtxDevice_t *vtxDevice, uint8_t onoff)
{ {
static bool bLastOnOff = false; static bool lastOnOff = false;
if (!vtxSAIsReady(vtxDevice) || saDevice.version < 2) { if (!vtxSAIsReady(vtxDevice) || saDevice.version < 2) {
return; return;
@ -930,10 +930,10 @@ static void vtxSASetPitMode(vtxDevice_t *vtxDevice, uint8_t onoff)
} }
// Only issue pit mode commands on status change // Only issue pit mode commands on status change
if (bLastOnOff == onoff) { if (lastOnOff == onoff) {
return; return;
} }
bLastOnOff = onoff; lastOnOff = onoff;
if (saDevice.version >= 3 && !saDevice.willBootIntoPitMode) { if (saDevice.version >= 3 && !saDevice.willBootIntoPitMode) {
if (onoff) { if (onoff) {