Fixed another GPS SPI option to make it only for Linux builds

This commit is contained in:
Eric Katzfey 2023-07-06 11:15:26 -07:00
parent 9edd3b8532
commit 820570a5b1
1 changed files with 5 additions and 5 deletions

View File

@ -1450,12 +1450,12 @@ GPS *GPS::instantiate(int argc, char *argv[], Instance instance)
break;
case 'j':
if (!strcmp(myoptarg, "spi")) {
interface_secondary = GPSHelper::Interface::SPI;
} else if (!strcmp(myoptarg, "uart")) {
if (!strcmp(myoptarg, "uart")) {
interface_secondary = GPSHelper::Interface::UART;
#ifdef __PX4_LINUX
} else if (!strcmp(myoptarg, "spi")) {
interface_secondary = GPSHelper::Interface::SPI;
#endif
} else {
PX4_ERR("unknown interface for secondary: %s", myoptarg);
error_flag = true;