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.
2 parents 07e62b9 + ecf5a6b commit 2c25e82Copy full SHA for 2c25e82
ports/raspberrypi/common-hal/pulseio/PulseIn.c
@@ -173,8 +173,10 @@ uint16_t common_hal_pulseio_pulsein_popleft(pulseio_pulsein_obj_t *self) {
173
mp_raise_IndexError_varg(translate("pop from empty %q"), MP_QSTR_PulseIn);
174
}
175
uint16_t value = self->buffer[self->start];
176
+ common_hal_mcu_disable_interrupts();
177
self->start = (self->start + 1) % self->maxlen;
178
self->len--;
179
+ common_hal_mcu_enable_interrupts();
180
return value;
181
182
0 commit comments