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

Merge pull request #10751 from mikeller/fix_ghst_coding_style

Fixed coding style in GHST telemetry.
This commit is contained in:
Michael Keller 2021-05-23 00:38:54 +12:00 committed by GitHub
commit 6578cac89f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -147,10 +147,12 @@ void ghstFrameGpsSecondaryTelemetry(sbuf_t *dst)
sbufWriteU16(dst, GPS_directionToHome);
uint8_t gpsFlags = 0;
if(STATE(GPS_FIX))
if (STATE(GPS_FIX)) {
gpsFlags |= GPS_FLAGS_FIX;
if(STATE(GPS_FIX_HOME))
}
if (STATE(GPS_FIX_HOME)) {
gpsFlags |= GPS_FLAGS_FIX_HOME;
}
sbufWriteU8(dst, gpsFlags);
}