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
1 changed files with 4 additions and 2 deletions

View File

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