We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 295ce15 commit 1235382Copy full SHA for 1235382
cores/arduino/USB.cpp
@@ -10,7 +10,7 @@
10
#include <zephyr/usb/usb_device.h>
11
#include <SerialUSB.h>
12
13
-#if (DT_NODE_HAS_PROP(DT_PATH(zephyr_user), cdc_acm) && CONFIG_USB_CDC_ACM)
+#if ((DT_NODE_HAS_PROP(DT_PATH(zephyr_user), cdc_acm)) && (CONFIG_USB_CDC_ACM || CONFIG_USBD_CDC_ACM_CLASS))
14
const struct device *const usb_dev = DEVICE_DT_GET(DT_PHANDLE_BY_IDX(DT_PATH(zephyr_user), cdc_acm, 0));
15
16
void usb_status_cb(enum usb_dc_status_code cb_status, const uint8_t *param) {
@@ -67,4 +67,4 @@ arduino::SerialUSB_::operator bool() {
67
}
68
69
arduino::SerialUSB_ Serial(usb_dev);
70
-#endif
+#endif
0 commit comments