Fix compiler warning in CDC.cpp
This commit is contained in:
parent
948c73c5e3
commit
1be98bd7d5
|
@ -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