for(i = 0; i < NMEAP_MAX_SENTENCE_LENGTH; i++)
{
- char c = *s++;
+ unsigned char c = *s++;
if (c == '.')
{
* Return altitude in meter from a string.
*
*/
-static uint16_t nmea_altitude(const char *palt, const char *punits)
+static int32_t nmea_altitude(const char *palt, const char *punits)
{
- uint32_t alt;
+ int32_t alt;
if (*palt == 0)
return 0;
*/
if (sentence->callout != 0)
(*sentence->callout)(context, vtg, context->user_data);
-
+
return NMEA_GPVTG;
}