From e471bf901d79ceaeaf0c46c8b6349627747b6d56 Mon Sep 17 00:00:00 2001
From: Thomas Carpenter <strange_orange_fish@hotmail.com>
Date: Sun, 22 Apr 2012 23:25:23 +0100
Subject: [PATCH] fixed not informing EQMOD of updated position when slewing
 east or south

---
 AstroEQ/AstroEQ.ino | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/AstroEQ/AstroEQ.ino b/AstroEQ/AstroEQ.ino
index cd109a0..a5d71b5 100644
--- a/AstroEQ/AstroEQ.ino
+++ b/AstroEQ/AstroEQ.ino
@@ -490,7 +490,7 @@ ISR(TIMER4_OVF_vect) {
 }
 
 void motorStep(byte motor){
-  static byte divider[2] = {0};
+  static char divider[2] = {0};
   if(motor){
     writeSTEP2(HIGH);
     delayMicroseconds(15);
@@ -502,7 +502,7 @@ void motorStep(byte motor){
   }
   if(synta.cmd.stepDir(motor) < 0){
     divider[motor]--;
-    if (divider[motor] == -1){
+    if (divider[motor] < 0){
       divider[motor] = synta.scalar() - 1;
       synta.cmd.jVal(motor, (synta.cmd.jVal(motor) - 1));
       if(synta.cmd.gotoEn(motor)){
-- 
GitLab