Compilation fix

This commit is contained in:
Bertrand Songis
2016-09-01 19:43:29 +02:00
parent d5235d586d
commit c882095a81
+6 -2
View File
@@ -712,6 +712,8 @@ int cliShowJitter(const char ** argv)
int cliGps(const char ** argv)
{
int baudrate = 0;
#if defined(DEBUG)
if (argv[1][0] == '$') {
// send command to GPS
gpsSendFrame(argv[1]);
@@ -719,8 +721,10 @@ int cliGps(const char ** argv)
else if (!strcmp(argv[1], "trace")) {
gpsTraceEnabled = !gpsTraceEnabled;
}
else if (toInt(argv, 1, &baudrate) > 0 && baudrate > 0) {
else
#endif
if (toInt(argv, 1, &baudrate) > 0 && baudrate > 0) {
gpsInit(baudrate);
serialPrint("GPS baudrate set to %d", baudrate);
}