diff options
| author | Dan Halbert <halbert@halwitz.org> | 2020-12-22 18:54:42 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2020-12-22 18:54:42 -0500 |
| commit | 89079039adadac7c73fe03892ac2114dcc567429 (patch) | |
| tree | 13e3480b16dad9d293d9ce7dc91c7d0475fdd96b /ports | |
| parent | 42ca57ff8f19368dff97bebd9ca0ac061b219084 (diff) | |
FrequencyIn: do not raise in interrupt handler
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c b/ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c index 02d0482dc..f973db90b 100644 --- a/ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c +++ b/ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c @@ -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) { |
