forked from Archive/PX4-Autopilot
Fixed another GPS SPI option to make it only for Linux builds
This commit is contained in:
parent
9edd3b8532
commit
820570a5b1
|
@ -1450,12 +1450,12 @@ GPS *GPS::instantiate(int argc, char *argv[], Instance instance)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'j':
|
case 'j':
|
||||||
if (!strcmp(myoptarg, "spi")) {
|
if (!strcmp(myoptarg, "uart")) {
|
||||||
interface_secondary = GPSHelper::Interface::SPI;
|
|
||||||
|
|
||||||
} else if (!strcmp(myoptarg, "uart")) {
|
|
||||||
interface_secondary = GPSHelper::Interface::UART;
|
interface_secondary = GPSHelper::Interface::UART;
|
||||||
|
#ifdef __PX4_LINUX
|
||||||
|
} else if (!strcmp(myoptarg, "spi")) {
|
||||||
|
interface_secondary = GPSHelper::Interface::SPI;
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
PX4_ERR("unknown interface for secondary: %s", myoptarg);
|
PX4_ERR("unknown interface for secondary: %s", myoptarg);
|
||||||
error_flag = true;
|
error_flag = true;
|
||||||
|
|
Loading…
Reference in New Issue