diff options
author | Keith Packard <keithp@keithp.com> | 2009-11-15 16:04:41 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-11-15 16:19:52 -0800 |
commit | 524665fc221b0d483453c67b7211e282cebc8980 (patch) | |
tree | c65642da7284f8f184382acb785e51e5fe7a08af /src/ao_gps_print.c | |
parent | 3ee279ba76c2a79d142c466f19ef758cf4c01d70 (diff) |
Add date to GPS data, captured from GPRMC packet.
Pull the date out of the GPS stream and send it over the telemetry
link and write it to the eeprom.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_gps_print.c')
-rw-r--r-- | src/ao_gps_print.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ao_gps_print.c b/src/ao_gps_print.c index cc751337..95439ec7 100644 --- a/src/ao_gps_print.c +++ b/src/ao_gps_print.c @@ -53,6 +53,10 @@ ao_gps_print(__xdata struct ao_gps_data *gps_data) __reentrant ao_gps_split(gps_data->latitude, &lat); ao_gps_split(gps_data->longitude, &lon); + printf(" 20%02d-%02d-%02d", + gps_data->year, + gps_data->month, + gps_data->day); printf(" %2d:%02d:%02d", gps_data->hour, gps_data->minute, |