Firmware/src/gps_std.c
static float nmea_atof(uint8_t *str)
{
	if (str == NULL || str[0] == 0)
	{
		return 0.0f;
	}
	// Skip leading zeroes for string
	char *start = (char *)str;
	while (start[0] == '0')
		start++;
	return atof(start);
}
// Convert a string into float. Empty string is interpreted as 0, trims
// leading zeroes from the string before converting.
Convert a string into float. Empty string is interpreted as 0, trims
leading zeroes from the string before converting.
Convert a string into float . Empty string is interpreted as 0 trims leading zeroes from the string before converting .
static float nmea_atof(uint8_t *str)
{
	if (str == NULL || str[0] == 0)
	{
		return 0.0f;
	}
	char *start = (char *)str;
	while (start[0] == '0')
		start++;
	return atof(start);
}
static float nmea_atof ( uint8_t * str ) { if ( str == NULL || str [ 0 ] == 0 ) { return 0.0f ; } char * start = ( char * ) str ; while ( start [ 0 ] == ' ' ) start ++ ; return atof ( start ) ; }
Convert a string into float.
Convert a string into float .
// Skip leading zeroes for string