fork

Dependencies:   mbed

Fork of LG by igor Apu

Revision:
181:0b022246c43c
Parent:
170:d099c3025f87
Child:
183:7e200f4d9b16
--- a/MTimer.c	Wed Jul 06 08:28:15 2016 +0000
+++ b/MTimer.c	Fri Jul 08 14:58:17 2016 +0000
@@ -214,15 +214,17 @@
 ///////////////////////////////////////////////////////////////////////
 __irq void TIMER2_IRQHandler (void)
 {
+    LoopOn
     LPC_TIM2->IR = 1;
 
     Global_Time++;
 
-    Time_UART++;
+   if(Time_UART) Time_UART--;
 
     Time_vibro++;
   
     Gyro.VibroOutF=1;
     
     Event100K ++;
+    LoopOff
 }
\ No newline at end of file