diff --git a/src/main.c b/src/main.c index f480b3154..baaa0bb5a 100644 --- a/src/main.c +++ b/src/main.c @@ -852,11 +852,11 @@ int main(int argc, char * argv []) port = DEFAULT_USB; break; -#ifdef HAVE_LINUXSPI case CONNTYPE_SPI: - port = *default_spi ? default_spi : "unknown"; - break; +#ifdef HAVE_LINUXSPI + port = *default_spi? default_spi: "unknown"; #endif + break; } }