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 72ea3cf commit 7ea1a73Copy full SHA for 7ea1a73
cores/arduino/USB/CDC.cpp
@@ -298,7 +298,7 @@ Serial_::operator bool()
298
}
299
300
int32_t Serial_::readBreak() {
301
- uint8_t enableInterrupts = (__get_PRIMASK() == 0);
+ uint8_t enableInterrupts = ((__get_PRIMASK() & 0x1) == 0);
302
303
// disable interrupts,
304
// to avoid clearing a breakValue that might occur
0 commit comments