Skip to content

Commit

Permalink
fixing @ shortcut for no-response items
Browse files Browse the repository at this point in the history
  • Loading branch information
Anjo Krank committed Sep 29, 2023
1 parent de48939 commit fbe5a4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
11 changes: 4 additions & 7 deletions drivers/telescope/lx200_OpenAstroTech.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
Expand Down
3 changes: 0 additions & 3 deletions drivers/telescope/lx200_OpenAstroTech.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ class LX200_OpenAstroTech : public LX200GPS
INumber DecLimitsN[2];
INumberVectorProperty DecLimitsNP;

INumber HeaterN[2];
INumberVectorProperty HeaterNP;

ISwitchVectorProperty HomeSP;
ISwitch HomeS;

Expand Down

0 comments on commit fbe5a4c

Please sign in to comment.