8000 FrequencyIn: do not raise in interrupt handler · russbot/circuitpython@eb03e4b · GitHub
[go: up one dir, main page]

Skip to content

Commit eb03e4b

Browse files
committed
FrequencyIn: do not raise in interrupt handler
1 parent 3266720 commit eb03e4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ void frequencyin_emergency_cancel_capture(uint8_t index) {
8282
#ifdef SAM_D5X_E5X
8383
NVIC_EnableIRQ(EIC_0_IRQn + self->channel);
8484
#endif
85-
mp_raise_RuntimeError(translate("Frequency captured is above capability. Capture Paused."));
85+
// Frequency captured is above capability. Capture paused.
86+
// We can't raise an error here; we're in an interrupt handler.
8687
}
8788

8889
void frequencyin_interrupt_handler(uint8_t index) {

0 commit comments

Comments
 (0)
0