File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -436,7 +436,7 @@ void HWCDC::setDebugOutput(bool en)
436
436
}
437
437
}
438
438
439
- #if ARDUINO_USB_MODE // Hardware JTAG CDC selected
439
+ #if ARDUINO_USB_MODE && ARDUINO_USB_CDC_ON_BOOT // Hardware JTAG CDC selected
440
440
// USBSerial is always available to be used
441
441
HWCDC HWCDCSerial;
442
442
#endif
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ class HWCDC: public Stream
102
102
uint32_t baudRate (){return 115200 ;}
103
103
104
104
};
105
- #if ARDUINO_USB_MODE // Hardware JTAG CDC selected
105
+ #if ARDUINO_USB_MODE && ARDUINO_USB_CDC_ON_BOOT // Hardware JTAG CDC selected
106
106
#ifndef HWCDC_SERIAL_IS_DEFINED
107
107
#define HWCDC_SERIAL_IS_DEFINED 1
108
108
#endif
Original file line number Diff line number Diff line change @@ -455,7 +455,7 @@ USBCDC::operator bool() const
455
455
return connected;
456
456
}
457
457
458
- #if !ARDUINO_USB_MODE // Native USB CDC selected
458
+ #if !ARDUINO_USB_MODE && ARDUINO_USB_CDC_ON_BOOT // Native USB CDC selected
459
459
// USBSerial is always available to be used
460
460
USBCDC USBSerial (0 );
461
461
#endif
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ class USBCDC: public Stream
141
141
142
142
};
143
143
144
- #if !ARDUINO_USB_MODE // Native USB CDC selected
144
+ #if !ARDUINO_USB_MODE && ARDUINO_USB_CDC_ON_BOOT // Native USB CDC selected
145
145
#ifndef USB_SERIAL_IS_DEFINED
146
146
#define USB_SERIAL_IS_DEFINED 1
147
147
#endif
You can’t perform that action at this time.
0 commit comments