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

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

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