From: asterix Date: Mon, 5 Oct 2009 17:12:10 +0000 (+0000) Subject: Fix return function. X-Git-Tag: 2.3.0~54 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=75ba7aa3b0bc028e00aad45900817b49b2630261;p=bertos.git Fix return function. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3029 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/net/nmea.c b/bertos/net/nmea.c index a9684a9e..29f99ee1 100644 --- a/bertos/net/nmea.c +++ b/bertos/net/nmea.c @@ -91,6 +91,8 @@ static udegree_t convertToDegree(const char *str) deg = dec / 1000000; min = dec - deg * 1000000; dec = deg * 1000000 + ((min * 5) + 1) / 3; + + return dec; } static udegree_t nmea_latitude(const char *plat, const char *phem)