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 7ea1a73 commit 18efa35Copy full SHA for 18efa35
cores/arduino/USB/CDC.cpp
@@ -303,15 +303,15 @@ int32_t Serial_::readBreak() {
303
// disable interrupts,
304
// to avoid clearing a breakValue that might occur
305
// while processing the current break value
306
- noInterrupts();
+ __disable_irq();
307
308
int32_t ret = breakValue;
309
310
breakValue = -1;
311
312
if (enableInterrupts) {
313
// re-enable the interrupts
314
- interrupts();
+ __enable_irq();
315
}
316
317
return ret;
0 commit comments