From f54e52342d3f785ffc09c159adaa2626fcca624b Mon Sep 17 00:00:00 2001 From: gereta <35538147+gereta@users.noreply.github.com> Date: Sat, 8 Mar 2025 07:28:34 +0100 Subject: [PATCH] Update skywatcher.c Probably by mistake the call to read data from the serial port was left twice. Therefore, controlling Skywatcher mounts does not work and ends with a timeout. Otherwise, excellent work - since all Skywatcher mounts use the same motor controller firmware, it is possible to control not only Allview but all mounts from this manufacturer. --- rotators/skywatcher/skywatcher.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/rotators/skywatcher/skywatcher.c b/rotators/skywatcher/skywatcher.c index 4cd6e6da6..c7b65801b 100644 --- a/rotators/skywatcher/skywatcher.c +++ b/rotators/skywatcher/skywatcher.c @@ -67,15 +67,6 @@ static int skywatcher_cmd(ROT *rot, const char *cmd, char *response, return -code; } - // the actual response - code = read_string(port, (unsigned char *) response, response_len, "\r", 1, 0, - 1); - - if (code < 0) - { - return -code; - } - // nullify last \r response[strlen(response) - 1] = '\0';