Fix compiler warning in CDC.cpp

This commit is contained in:
Nico 2015-09-24 12:03:55 +02:00 committed by Cristian Maglie
parent 948c73c5e3
commit 1be98bd7d5
1 changed files with 3 additions and 1 deletions

View File

@ -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() {