+ /* if there is no fix, or we are recording (fp != NULL), but the fix is so
+ * bad that it is a 2D fix only, with no time set then do not
+ * record any longer */
+ if ((device->status == LOCATION_GPS_DEVICE_STATUS_NO_FIX) ||
+ (device->fix && fp &&
+ (! device->fix->fields & LOCATION_GPS_DEVICE_TIME_SET) &&
+ (device->fix->mode == LOCATION_GPS_DEVICE_MODE_2D))) {
+ app_data->has_fix = FALSE;
+ hildon_banner_show_information(GTK_WIDGET(app_data->window), NULL, "WARNING: Lost fix");
+ app_data->last_device_status = LOCATION_GPS_DEVICE_STATUS_NO_FIX;
+ }
+ else if (device->fix) {