We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 228fa37 commit 900ae49Copy full SHA for 900ae49
hardware/arduino/avr/cores/arduino/CDC.cpp
@@ -236,9 +236,11 @@ Serial_::operator bool() {
236
237
unsigned long Serial_::baud() {
238
// Disable interrupts while reading a multi-byte value
239
+ uint32_t baudrate;
240
ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
- return _usbLineInfo.dwDTERate;
241
+ baudrate = _usbLineInfo.dwDTERate;
242
}
243
+ return baudrate;
244
245
246
uint8_t Serial_::stopbits() {
0 commit comments