Skip to content

Commit b236ffe

Browse files
committed
Ignore false interrupt errors, as they can infinite loops
1 parent 277013b commit b236ffe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/driver/source/m2m_hif.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,11 @@ static sint8 hif_isr(void)
600600
{
601601
#ifndef WIN32
602602
M2M_ERR("(hif) False interrupt %lx",reg);
603+
#ifdef ARDUINO
604+
// ignore false interrupts, since they cause infinite loops in hif_handle_isr
605+
#else
603606
ret = M2M_ERR_FAIL;
607+
#endif
604608
goto ERR1;
605609
#else
606610
#endif

0 commit comments

Comments
 (0)