mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 14:55:21 +03:00
Fixed compiler warning on unused blackboxShouldLogGpsHomeFrame function.
This commit is contained in:
parent
99b21a4f4d
commit
abd03ab558
1 changed files with 2 additions and 0 deletions
|
@ -1413,6 +1413,7 @@ static bool blackboxShouldLogIFrame(void)
|
||||||
* We write it periodically so that if one Home Frame goes missing, the GPS coordinates can
|
* We write it periodically so that if one Home Frame goes missing, the GPS coordinates can
|
||||||
* still be interpreted correctly.
|
* still be interpreted correctly.
|
||||||
*/
|
*/
|
||||||
|
#ifdef GPS
|
||||||
STATIC_UNIT_TESTED bool blackboxShouldLogGpsHomeFrame(void)
|
STATIC_UNIT_TESTED bool blackboxShouldLogGpsHomeFrame(void)
|
||||||
{
|
{
|
||||||
if (GPS_home[0] != gpsHistory.GPS_home[0] || GPS_home[1] != gpsHistory.GPS_home[1]
|
if (GPS_home[0] != gpsHistory.GPS_home[0] || GPS_home[1] != gpsHistory.GPS_home[1]
|
||||||
|
@ -1421,6 +1422,7 @@ STATIC_UNIT_TESTED bool blackboxShouldLogGpsHomeFrame(void)
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Called once every FC loop in order to keep track of how many FC loop iterations have passed
|
// Called once every FC loop in order to keep track of how many FC loop iterations have passed
|
||||||
static void blackboxAdvanceIterationTimers(void)
|
static void blackboxAdvanceIterationTimers(void)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue