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;
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;
}
}