Use strsep for NMEA message tokenization
authorPetr Štetiar <ynezz@true.cz>
Wed, 27 Jul 2016 12:45:51 +0000 (14:45 +0200)
committerJohn Crispin <john@phrozen.org>
Sun, 24 Jul 2016 04:12:43 +0000 (06:12 +0200)
commit882b239a2768e70143ace43205ead6cb56388042
tree161a1b238cf82f9c8e0f9697e781760f05d7f2b6
parent442c54998883cd27d1d12ee04595d70b843ab444
Use strsep for NMEA message tokenization

strtok doesn't parse correctly following message:

  $GPGSA,A,1,,,,,,,,,,,,,,,*1E

Resulting in "datagram has wrong parameter count".

Signed-off-by: Petr Štetiar <ynezz@true.cz>
nmea.c