FrequencyIn: do not raise in interrupt handler

This commit is contained in:
Dan Halbert 2020-12-22 18:54:42 -05:00
parent 42ca57ff8f
commit 89079039ad
1 changed files with 2 additions and 1 deletions

View File

@ -82,7 +82,8 @@ void frequencyin_emergency_cancel_capture(uint8_t index) {
#ifdef SAM_D5X_E5X
NVIC_EnableIRQ(EIC_0_IRQn + self->channel);
#endif
mp_raise_RuntimeError(translate("Frequency captured is above capability. Capture Paused."));
// Frequency captured is above capability. Capture paused.
// We can't raise an error here; we're in an interrupt handler.
}
void frequencyin_interrupt_handler(uint8_t index) {