mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +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() {
|
unsigned long Serial_::baud() {
|
||||||
// Disable interrupts while reading a multi-byte value
|
// Disable interrupts while reading a multi-byte value
|
||||||
|
uint32_t baudrate;
|
||||||
ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
|
ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
|
||||||
return _usbLineInfo.dwDTERate;
|
baudrate = _usbLineInfo.dwDTERate;
|
||||||
}
|
}
|
||||||
|
return baudrate;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t Serial_::stopbits() {
|
uint8_t Serial_::stopbits() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user