Use the correct UART/Serial when CDC is enabled (#5957)

This commit is contained in:
Keith Burzinski 2023-12-18 01:33:12 -06:00 committed by Jesse Hills
parent eefa1cd3ab
commit ab22a3da34
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

View file

@ -237,8 +237,8 @@ void Logger::pre_setup() {
Serial1.begin(this->baud_rate_);
#else
#if ARDUINO_USB_CDC_ON_BOOT
this->hw_serial_ = &Serial;
Serial.begin(this->baud_rate_);
this->hw_serial_ = &Serial0;
Serial0.begin(this->baud_rate_);
#else
this->hw_serial_ = &Serial;
Serial.begin(this->baud_rate_);