mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-28 09:24:14 +01:00
Fix compiler warning in CDC.cpp
This commit is contained in:
parent
228fa37568
commit
900ae49ee7
@ -236,9 +236,11 @@ Serial_::operator bool() {
|
||||
|
||||
unsigned long Serial_::baud() {
|
||||
// Disable interrupts while reading a multi-byte value
|
||||
uint32_t baudrate;
|
||||
ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
|
||||
return _usbLineInfo.dwDTERate;
|
||||
baudrate = _usbLineInfo.dwDTERate;
|
||||
}
|
||||
return baudrate;
|
||||
}
|
||||
|
||||
uint8_t Serial_::stopbits() {
|
||||
|
Loading…
Reference in New Issue
Block a user