Closed gdpinchina closed 5 years ago
Hi,
Thanks for the fix. There's one thing I cannot let slip, though: the memset()
calls are triggering undefined behavior and are not portable. Please use the following initialization instead:
struct minmea_sentence_gga expected = {};
expected = (struct minmea_sentence_gga) {
.time = ...
}
ck_assert(...)
Kosma.
Hi, I updated the code. I think it should work this time:)
Thanks! Merged.
As shown in
http://www.catb.org/gpsd/NMEA.html#_gga_global_positioning_system_fix_data
:dgps_age is a float type instead of int.