altos: clear CPU port 1 interrupt flag when handled
[fw/altos] / src / ao_btm.c
index 172004e9c6aae746f0b30b64201c249e8ba1a57b..a9306c101f715c40b703e39900007c837abf3100 100644 (file)
@@ -257,6 +257,9 @@ ao_btm_isr(void)
        __interrupt 15
 #endif
 {
+#if BT_LINK_ON_P1
+       P1IF = 0;
+#endif
        if (BT_PIFG & (1 << BT_LINK_PIN_INDEX)) {
                ao_btm_check_link();
                ao_wakeup(&ao_btm_connected);