mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 08:45:36 +03:00
GPS - Fix build for non-GPS enabled targets.
This commit is contained in:
parent
00d0e30981
commit
c595bf8fd4
1 changed files with 2 additions and 0 deletions
|
@ -614,9 +614,11 @@ void loop(void)
|
|||
// if GPS feature is enabled, gpsThread() will be called at some intervals to check for stuck
|
||||
// hardware, wrong baud rates, init GPS if needed, etc. Don't use SENSOR_GPS here as gpsThread() can and will
|
||||
// change this based on available hardware
|
||||
#ifdef GPS
|
||||
if (feature(FEATURE_GPS)) {
|
||||
gpsThread();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
currentTime = micros();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue