mirror of
https://github.com/opentx/opentx.git
synced 2025-07-18 22:05:10 +03:00
Compilation fix
This commit is contained in:
parent
d5235d586d
commit
c882095a81
1 changed files with 6 additions and 2 deletions
|
@ -712,6 +712,8 @@ int cliShowJitter(const char ** argv)
|
||||||
int cliGps(const char ** argv)
|
int cliGps(const char ** argv)
|
||||||
{
|
{
|
||||||
int baudrate = 0;
|
int baudrate = 0;
|
||||||
|
|
||||||
|
#if defined(DEBUG)
|
||||||
if (argv[1][0] == '$') {
|
if (argv[1][0] == '$') {
|
||||||
// send command to GPS
|
// send command to GPS
|
||||||
gpsSendFrame(argv[1]);
|
gpsSendFrame(argv[1]);
|
||||||
|
@ -719,8 +721,10 @@ int cliGps(const char ** argv)
|
||||||
else if (!strcmp(argv[1], "trace")) {
|
else if (!strcmp(argv[1], "trace")) {
|
||||||
gpsTraceEnabled = !gpsTraceEnabled;
|
gpsTraceEnabled = !gpsTraceEnabled;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
|
||||||
else if (toInt(argv, 1, &baudrate) > 0 && baudrate > 0) {
|
if (toInt(argv, 1, &baudrate) > 0 && baudrate > 0) {
|
||||||
gpsInit(baudrate);
|
gpsInit(baudrate);
|
||||||
serialPrint("GPS baudrate set to %d", baudrate);
|
serialPrint("GPS baudrate set to %d", baudrate);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue