ugps: Simplify and fix position computation from GPRMC sentence
authorPetr Štetiar <ynezz@true.cz>
Wed, 31 Aug 2016 07:15:44 +0000 (09:15 +0200)
committerJohn Crispin <john@phrozen.org>
Mon, 5 Sep 2016 05:26:02 +0000 (07:26 +0200)
commit51b808cdd323c802847885421dd18897afaae210
tree04022f7729f8a79334a22346ceef862d47220641
parent6c94f90daf15d1bc7caf3251956fc234e2f51756
ugps: Simplify and fix position computation from GPRMC sentence

Current code parses following GPRMC

  $GPRMC,071305.0,A,5207.76855,N,02104.022546,E,0.0,,270816,0.0,E,A*18

as

  position: 52.117947 21.67042

with this fix it's being parsed correctly as

  position: 52.129475 21.067041

Fixes https://github.com/lede-project/source/issues/279

Signed-off-by: Petr Štetiar <ynezz@true.cz>
Tested-by: Cezary Jackiewicz <cezary@eko.one.pl>
nmea.c