diff --git a/ports/stm32/usb.c b/ports/stm32/usb.c index a5be6cd77d..1ff62b4ab5 100644 --- a/ports/stm32/usb.c +++ b/ports/stm32/usb.c @@ -48,7 +48,7 @@ #if !defined(MICROPY_HW_USB_MAIN_DEV) #if defined(MICROPY_HW_USB_FS) #define MICROPY_HW_USB_MAIN_DEV (USB_PHY_FS_ID) -#elif defined(MICROPY_HW_USB_HS) && defined(MICROPY_HW_USB_HS_IN_FS) +#elif defined(MICROPY_HW_USB_HS) #define MICROPY_HW_USB_MAIN_DEV (USB_PHY_HS_ID) #else #error Unable to determine proper MICROPY_HW_USB_MAIN_DEV to use