Skip to content

Commit

Permalink
[gps] NMEA_PRINT for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Mar 24, 2015
1 parent ad3ef75 commit be177ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 8 additions & 0 deletions sw/airborne/subsystems/gps/gps_nmea.c
Expand Up @@ -47,6 +47,14 @@
#include <math.h>
#include <stdlib.h>

#ifndef NMEA_PRINT
#define NMEA_PRINT(...) {};
#endif

#if NMEA_PRINT == printf
#include <stdio.h>
#endif

struct GpsNmea gps_nmea;

static void nmea_parse_GSA(void);
Expand Down
4 changes: 0 additions & 4 deletions sw/airborne/subsystems/gps/gps_nmea.h
Expand Up @@ -32,10 +32,6 @@

#include "mcu_periph/uart.h"

#ifndef DEBUG_NMEA
#define NMEA_PRINT(...) {};
#endif

#define GPS_NB_CHANNELS 12

#define NMEA_MAXLEN 255
Expand Down

0 comments on commit be177ac

Please sign in to comment.