- log.u.gps.hour = gps_data->hour;
- log.u.gps.minute = gps_data->minute;
- log.u.gps.second = gps_data->second;
- log.u.gps.flags = gps_data->flags;
- log.u.gps.year = gps_data->year;
- log.u.gps.month = gps_data->month;
- log.u.gps.day = gps_data->day;
- log.u.gps.course = gps_data->course;
- log.u.gps.ground_speed = gps_data->ground_speed;
- log.u.gps.climb_rate = gps_data->climb_rate;
- log.u.gps.pdop = gps_data->pdop;
- log.u.gps.hdop = gps_data->hdop;
- log.u.gps.vdop = gps_data->vdop;
- log.u.gps.mode = gps_data->mode;
- ao_log_gps(&log);
+ ao_log_data.u.gps.hour = gps_data->hour;
+ ao_log_data.u.gps.minute = gps_data->minute;
+ ao_log_data.u.gps.second = gps_data->second;
+ ao_log_data.u.gps.flags = gps_data->flags;
+ ao_log_data.u.gps.year = gps_data->year;
+ ao_log_data.u.gps.month = gps_data->month;
+ ao_log_data.u.gps.day = gps_data->day;
+ ao_log_data.u.gps.course = gps_data->course;
+ ao_log_data.u.gps.ground_speed = gps_data->ground_speed;
+ ao_log_data.u.gps.climb_rate = gps_data->climb_rate;
+ ao_log_data.u.gps.pdop = gps_data->pdop;
+ ao_log_data.u.gps.hdop = gps_data->hdop;
+ ao_log_data.u.gps.vdop = gps_data->vdop;
+ ao_log_data.u.gps.mode = gps_data->mode;
+ ao_log_write(&ao_log_data);