From de0e014b520f2336e181859e620096a1fdeca1e5 Mon Sep 17 00:00:00 2001 From: gwondaleya <gwondaleya@free.fr> Date: Mon, 20 May 2013 22:47:24 +0300 Subject: [PATCH] Update Synta_PIC_Optimized.pde --- AstroEQ-PIC-Firmware/Synta_PIC_Optimized.pde | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AstroEQ-PIC-Firmware/Synta_PIC_Optimized.pde b/AstroEQ-PIC-Firmware/Synta_PIC_Optimized.pde index 69c7a3b..a54ebb3 100644 --- a/AstroEQ-PIC-Firmware/Synta_PIC_Optimized.pde +++ b/AstroEQ-PIC-Firmware/Synta_PIC_Optimized.pde @@ -772,6 +772,9 @@ void decodeCommand(char command, char* packetIn){ //each command is axis specifi case 'G': //set mode and direction, return empty response _GVal[_axis]= (packetIn[0] - 48); //Store the current mode for the axis dir[_axis]= (packetIn[1] - 48); //Store the current direction for that axis + if (dir[_axis] == 0) stepDir[_axis]=1; + else stepDir[_axis]=-1; + //responseData = 0; Serial.printf("=\r"); // Serial.printf("Gval %i\r",_GVal[_axis]);//debug -- GitLab