diff --git a/AstroEQ-PIC-Firmware/Synta_PIC_Optimized.pde b/AstroEQ-PIC-Firmware/Synta_PIC_Optimized.pde index 69c7a3b261766ab931fd652be4deb6a7c14d9f26..a54ebb3bb2cafab3d7537b247c4f48d4f1725092 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