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

GPS - Fix build for non-GPS enabled targets.

This commit is contained in:
Dominic Clifton 2014-12-14 23:55:31 +00:00
parent 00d0e30981
commit c595bf8fd4

View file

@ -614,9 +614,11 @@ void loop(void)
// if GPS feature is enabled, gpsThread() will be called at some intervals to check for stuck // 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 // 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 // change this based on available hardware
#ifdef GPS
if (feature(FEATURE_GPS)) { if (feature(FEATURE_GPS)) {
gpsThread(); gpsThread();
} }
#endif
} }
currentTime = micros(); currentTime = micros();