From fbe5a4c6cba0df5e02f20ad67dff8c9b9a4fad2c Mon Sep 17 00:00:00 2001 From: Anjo Krank Date: Fri, 29 Sep 2023 21:31:57 +0200 Subject: [PATCH] fixing @ shortcut for no-response items --- drivers/telescope/lx200_OpenAstroTech.cpp | 11 ++++------- drivers/telescope/lx200_OpenAstroTech.h | 3 --- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/telescope/lx200_OpenAstroTech.cpp b/drivers/telescope/lx200_OpenAstroTech.cpp index 0de6cabb60..a91dcc651b 100644 --- a/drivers/telescope/lx200_OpenAstroTech.cpp +++ b/drivers/telescope/lx200_OpenAstroTech.cpp @@ -96,11 +96,6 @@ bool LX200_OpenAstroTech::initProperties() IUFillNumber(&DecLimitsN[1], "OAT_DEC_LIMIT_UPPER", "Upper", "%.f", 0.0, 180.0, 120.0, 0); IUFillNumberVector(&DecLimitsNP, DecLimitsN, 2, m_defaultDevice->getDeviceName(), "OAT_DEC_LIMITS", "DEC Limits", MOTION_TAB, IP_RW, 60, IPS_OK); - // Heaters - IUFillNumber(&HeaterN[0], "OAT_HEATER_0", "Lower", "%d", 0.0, 10.0, 0, 0); - IUFillNumber(&HeaterN[1], "OAT_HEATER_1", "Lower", "%d", 0.0, 10.0, 0, 0); - IUFillNumberVector(&HeaterNP, HeaterN, 2, m_defaultDevice->getDeviceName(), "OAT_HEATERS", - "Heaters", MOTION_TAB, IP_RW, 60, IPS_OK); // SetParkDataType(PARK_RA_DEC); return true; } @@ -215,10 +210,12 @@ bool LX200_OpenAstroTech::ISNewText(const char *dev, const char *name, char *tex MeadeCommandResult[0] = 0; int err = 0; if(cmd[0] == ':' && cmd[len-1] == '#') { - err = executeMeadeCommand(texts[0], MeadeCommandResult); + err = executeMeadeCommand(cmd, MeadeCommandResult); } else if(cmd[0] == '@' && cmd[len-1] == '#') { - err = executeMeadeCommandBlind(texts[0]); + cmd[0] = ':'; + err = executeMeadeCommandBlind(cmd); } else if(cmd[0] == '&' && cmd[len-1] == '#') { + cmd[0] = ':'; int val = getCommandChar(PortFD, cmd); if(val != -1) { sprintf(MeadeCommandResult, "%c", val); diff --git a/drivers/telescope/lx200_OpenAstroTech.h b/drivers/telescope/lx200_OpenAstroTech.h index 5cfd503db5..f09d35e86c 100644 --- a/drivers/telescope/lx200_OpenAstroTech.h +++ b/drivers/telescope/lx200_OpenAstroTech.h @@ -81,9 +81,6 @@ class LX200_OpenAstroTech : public LX200GPS INumber DecLimitsN[2]; INumberVectorProperty DecLimitsNP; - INumber HeaterN[2]; - INumberVectorProperty HeaterNP; - ISwitchVectorProperty HomeSP; ISwitch HomeS;