![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
forkd
Fork of LGstaandart by
Diff: vibro.c
- Revision:
- 232:130a2b5003e6
- Parent:
- 231:079835d508ef
diff -r 079835d508ef -r 130a2b5003e6 vibro.c --- a/vibro.c Thu Jan 25 13:59:43 2018 +0000 +++ b/vibro.c Wed Jan 31 13:41:23 2018 +0000 @@ -16,9 +16,10 @@ __irq void EINT3_IRQHandler() { - - Gyro.EXT_Latch=1; - LPC_GPIOINT->IO0IntClr |= (1<<1); + if( Gyro.EXT_Latch){} + else Gyro.EXT_Latch=1; + LPC_GPIOINT->IO0IntClr |= (1<<1); + //NVIC_DisableIRQ(EINT3_IRQn); }