diff src/compass.c @ 621:1ad0531e9078

3.01 release
author heinrichsweikamp
date Sat, 23 Feb 2019 16:51:14 +0100
parents cd986267a5ca
children c40025d8e750
line wrap: on
line diff
--- a/src/compass.c	Fri Feb 22 16:30:05 2019 +0100
+++ b/src/compass.c	Sat Feb 23 16:51:14 2019 +0100
@@ -73,7 +73,7 @@
 	while( (((a>>8) | (b>>8)) & 0xC0) == 0 )
 	{
         failsafe--;
-        if (failsafe==0) break;
+        if (failsafe==0) break;  
 		a <<= 1;
 		b <<= 1;
 	}
@@ -176,8 +176,8 @@
 void sincos(PARAMETER Int16 x, PARAMETER Int16 y, Int16* sin, Int16* cos)
 {
 	OVERLAY Int16 x2, y2, h2;
-    OVERLAY char failsafe = 250;
-
+    OVERLAY char failsafe=250;
+    
 	//---- Fold into one quadant ---------------------------------------------
 	OVERLAY char neg = 0;
 	if( x < 0 )
@@ -190,12 +190,12 @@
 		neg |= 2;
 		y = -y;
 	}
-
-	//---- Pre-scale both numerator and denominator ----------------------
+    
+    //---- Pre-scale both numerator and denominator ----------------------
 	while( (((x>>8) | (y>>8)) & 0xE0) == 0 )
 	{
         failsafe--;
-        if (failsafe == 0) break;
+        if (failsafe==0) break;
 		x <<= 1;
 		y <<= 1;
 	}