Skip to content

Commit

Permalink
[gps] Fix NMEA pointer error
Browse files Browse the repository at this point in the history
  • Loading branch information
fvantienen committed Nov 23, 2014
1 parent 2affa15 commit 3ae4c0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sw/airborne/subsystems/gps/gps_nmea.h
Expand Up @@ -88,13 +88,13 @@ extern struct GpsNmea gps_nmea;
extern void nmea_parse_char(uint8_t c);
extern void nmea_parse_msg(void);
extern uint8_t nmea_calc_crc(const char *buff, int buff_sz);
void nmea_parse_prop_init(void);
void nmea_parse_prop_msg(void);
extern void nmea_parse_prop_init(void);
extern void nmea_parse_prop_msg(void);

/** Read until a certain character, placed here for proprietary includes */
static inline void nmea_read_until(int *i)
{
while (gps_nmea.msg_buf[*i++] != ',') {
while (gps_nmea.msg_buf[(*i)++] != ',') {
if (*i >= gps_nmea.msg_len) {
return;
}
Expand Down

0 comments on commit 3ae4c0a

Please sign in to comment.