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 03ec06b commit dfedea1Copy full SHA for dfedea1
src/hal/hal.cpp
@@ -164,13 +164,13 @@ u1_t hal_checkTimer (u4_t time) {
164
static uint8_t irqlevel = 0;
165
166
void hal_disableIRQs () {
167
- cli();
+ noInterrupts();
168
irqlevel++;
169
}
170
171
void hal_enableIRQs () {
172
if(--irqlevel == 0) {
173
- sei();
+ interrupts();
174
175
// Instead of using proper interrupts (which are a bit tricky
176
// and/or not available on all pins on AVR), just poll the pin
0 commit comments