forkd

Dependencies:   mbed

Fork of LGstaandart by Dmitry Kovalev

Revision:
226:4a4d5bd5fcd7
Parent:
225:f8fee6c586cc
Child:
227:2774b56bfab0
--- a/MTimer.c	Tue Dec 12 05:53:39 2017 +0000
+++ b/MTimer.c	Tue Dec 26 05:14:09 2017 +0000
@@ -60,8 +60,12 @@
 	static int tempdac=0,tempdac1,JumpTimer=0;
     if (Event1Hz)	
     {
-		  /*  sprintf((Time),"%d     %d          %d   %d \r\n",Spi.DAC_B,  Gyro.HighTreshold, Gyro.ResetLevelCool,  Gyro.DownTreshold, Gyro.ResetLevelHeat);
-    		WriteCon(Time);*/
+     
+     
+     /* sprintf((Time),"%d \r\n",Gyro.EXT_Latch);
+      WriteCon(Time);*/
+     
+     
      if(Gyro.RgConA&0x4) JumpTimer=0;
      else
      	{   
@@ -128,7 +132,7 @@
 	{   
 		if(Gyro.Debag2)
 		{
-		 	sprintf((Time),"%d  %d  \r\n", 0xffff-Spi.DAC_A,  ((Spi.DAC_B-0x7fff)&0xffff));
+		 	sprintf((Time),"%d  %d  \r\n", (0xffff-Spi.DAC_A)-30000,  ((Spi.DAC_B-0x7fff)&0xffff));
      		WriteCon(Time);  
      	}
 	 Event500Hz--;