forkd

Dependencies:   mbed

Fork of LG2 by Dmitry Kovalev

Revision:
212:8d6784491bae
Parent:
211:ac8251b067d2
Child:
213:9953db9543d6
--- a/SPI.c	Mon Jul 03 05:50:08 2017 +0000
+++ b/SPI.c	Mon Jul 03 08:32:27 2017 +0000
@@ -150,8 +150,9 @@
  if(Gyro.RgConA&0x2) 
  {
  	Spi.DAC_A-=DeltaRegul*Gyro.HFO_Gain;
- 	if(Spi.DAC_A>Gyro.HFO_Min)		Spi.DAC_A-=0xfff;
- 	else if(Spi.DAC_A<Gyro.HFO_Max) Spi.DAC_A+=0xfff;
+ 	
+ 	if(Spi.DAC_A>Gyro.HFO_Min)		Spi.DAC_A-=0x7ff;
+ 	else if(Spi.DAC_A<Gyro.HFO_Max) Spi.DAC_A+=0x7ff;
  	}
  
 }