Fixed coding style in GHST telemetry.

This commit is contained in:
Michael Keller 2021-05-21 02:46:31 +12:00
parent 07c32e7302
commit 791a2ce390
1 changed files with 4 additions and 2 deletions

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);
}