This does not appear to work for me. This is what my settings look like,
and LOG_NMEA_GPS_DATA conditional define part of logGPS function looks like this,
and this is what I get in my log files. Occasionally I see one or two PIDs but not something that I would normally expect.
$GPRMC,095119.200,A,5213.0515,N,00006.2419,E,0.05,308.50,070515,,,A*68202,10D,0
50,20,-768,-15412,-6080
0,21,-9,-84,410
0,22,448,-74,-214
$GPVTG,308.50,T,,M,0.06,N,0.11,K,A*35200,104,16
46,20,-460,-15428,-5876
0,21,-197,-2,297
0,22,440,-72,-214
$GPRMC,095119.700,A,5213.0515,N,00006.2419,E,0.05,308.50,070515,,,A*6D204,111,11
46,20,-612,-15476,-6088
0,21,-216,-9,274
0,22,451,-75,-215
$GPVTG,308.50,T,,M,0.06,N,0.11,K,A*35204,133,101
47,20,-668,-15428,-5932
0,21,-119,-60,366
0,22,442,-74,-214
$GPRMC,095120.200,A,5213.0515,N,00006.2419,E,0.06,308.50,070515,,,A*61204,10C,688
47,20,-548,-15304,-6028
0,21,-22,-30,379
0,22,448,-72,-208
$GPVTG,308.50,T,,M,0.05,N,0.10,K,A*37202,10D,0
47,20,-444,-15192,-6080
0,21,-110,6,374
0,22,447,-71,-211
$GPRMC,095120.700,A,5213.0515,N,00006.2418,E,0.03,308.50,070515,,,A*60202,104,16
48,20,-564,-15380,-6284
0,21,-123,-6,295
0,22,443,-67,-211
$GPVTG,308.50,T,,M,0.05,N,0.09,K,A*3F203,111,11
46,20,-552,-15488,-5912
0,21,-156,-38,352
0,22,442,-66,-206
$GPRMC,095121.200,A,5213.0515,N,00006.2418,E,0.05,308.50,070515,,,A*62204,131,9654
47,20,-604,-15252,-5892
0,21,-84,-47,360
0,22,452,-74,-218
$GPVTG,308.50,T,,M,0.06,N,0.11,K,A*35203,10C,687
50,20,-524,-15380,-6072
0,21,-23,-111,422
0,22,444,-74,-216
$GPRMC,095121.700,A,5213.0515,N,00006.2418,E,0.05,308.50,070515,,,A*67200,10D,0
47,20,-648,-15068,-5972
0,21,-103,-18,274
0,22,447,-69,-213
$GPVTG,308.50,T,,M,0.06,N,0.12,K,A*36203,104,16
47,20,-576,-15244,-5964
0,21,-160,-27,312
0,22,447,-71,-217
$GPRMC,095122.200,A,5213.0516,N,00006.2418,E,0.05,308.50,070515,,,A*62203,111,11
50,20,-664,-15500,-5928
0,21,-74,-45,376
0,22,445,-71,-211
$GPVTG,308.50,T,,M,0.05,N,0.09,K,A*3F200,11F,1060
48,20,-532,-15464,-5884
0,21,-111,-31,355
0,22,445,-71,-215
$GPRMC,095122.700,A,5213.0516,N,00006.2418,E,0.06,308.50,070515,,,A*64202,10C,692
47,20,-476,-15324,-6232
0,21,-185,-27,260
0,22,451,-67,-217
$GPVTG,308.50,T,,M,0.07,N,0.13,K,A*36203,10D,0
46,20,-740,-15476,-6008
0,21,-139,-34,366
0,22,444,-68,-214
$GPRMC,095123.200,A,5213.0516,N,00006.2418,E,0.06,308.50,070515,,,A*60204,104,16
47,20,-648,-15416,-5832
0,21,-84,-67,409
0,22,447,-71,-209
$GPVTG,308.50,T,,M,0.05,N,0.10,K,A*37203,111,11
47,20,-508,-15428,-6036
0,21,-13,-72,391
0,22,439,-73,-205
$GPRMC,095123.700,A,5213.0516,N,00006.2417,E,0.04,308.50,070515,,,A*68203,105,101
50,20,-556,-15396,-5992
0,21,5,-70,373
0,22,447,-69,-211
$GPVTG,308.50,T,,M,0.04,N,0.07,K,A*30203,10C,702
47,20,-552,-15200,-6184
0,21,-16,-75,360
0,22,447,-73,-215
$GPRMC,095124.200,A,5213.0516,N,00006.2417,E,0.04,308.50,070515,,,A*6A199,10D,0
48,20,-444,-15404,-6176
0,21,-162,-18,340
0,22,450,-76,-210
$GPVTG,308.50,T,,M,0.04,N,0.07,K,A*30203,104,16
46,20,-528,-15396,-5928
0,21,-245,-8,233
0,22,448,-70,-212
$GPRMC,095124.700,A,5213.0516,N,00006.2417,E,0.04,308.50,070515,,,A*6F204,111,11
46,20,-464,-15452,-5908
0,21,-194,-64,214
0,22,444,-72,-214
The only thing left to try is to buffer entire NMEA message before writing it to SD card. Any thoughts? Would you mind sharing part of your logGPS function?