1
0
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:
Nico 2015-09-24 12:03:55 +02:00 committed by Cristian Maglie
parent 228fa37568
commit 900ae49ee7

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