1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-16 12:55:12 +03:00

Compilation fix

This commit is contained in:
Bertrand Songis 2016-09-11 23:21:42 +02:00
parent 8a31c1d555
commit 0f217b3507
5 changed files with 6 additions and 16 deletions

View file

@ -713,18 +713,16 @@ int cliGps(const char ** argv)
{
int baudrate = 0;
#if defined(DEBUG)
if (argv[1][0] == '$') {
// send command to GPS
gpsSendFrame(argv[1]);
}
#if defined(DEBUG)
else if (!strcmp(argv[1], "trace")) {
gpsTraceEnabled = !gpsTraceEnabled;
}
else
#endif
if (toInt(argv, 1, &baudrate) > 0 && baudrate > 0) {
else if (toInt(argv, 1, &baudrate) > 0 && baudrate > 0) {
gpsInit(baudrate);
serialPrint("GPS baudrate set to %d", baudrate);
}