Avoid the warning: enumeration value ‘CONNTYPE_SPI’ not handled in switch

This commit is contained in:
Stefan Rueger 2022-07-18 17:34:06 +01:00
parent 87401d341e
commit 0e7c1512e4
1 changed files with 3 additions and 3 deletions

View File

@ -852,11 +852,11 @@ int main(int argc, char * argv [])
port = DEFAULT_USB; port = DEFAULT_USB;
break; break;
#ifdef HAVE_LINUXSPI
case CONNTYPE_SPI: case CONNTYPE_SPI:
#ifdef HAVE_LINUXSPI
port = *default_spi? default_spi: "unknown"; port = *default_spi? default_spi: "unknown";
break;
#endif #endif
break;
} }
} }