Fix return function.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 5 Oct 2009 17:12:10 +0000 (17:12 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 5 Oct 2009 17:12:10 +0000 (17:12 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3029 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/net/nmea.c

index a9684a9ec126a3803953fcabf1501b95230672f8..29f99ee19396b1f5646ed291d87cbda5f95935be 100644 (file)
@@ -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)