diff --git a/plugins/TelescopeControl/src/Lx200/Lx200Command.cpp b/plugins/TelescopeControl/src/Lx200/Lx200Command.cpp index a280641cde0f9..08bb701691f6b 100644 --- a/plugins/TelescopeControl/src/Lx200/Lx200Command.cpp +++ b/plugins/TelescopeControl/src/Lx200/Lx200Command.cpp @@ -81,7 +81,7 @@ bool Lx200CommandSetSelectedRa::writeCommandToBuffer(char *&p, char *end) *p++ = ':'; *p++ = 'S'; *p++ = 'r'; - *p++ = ' '; +// *p++ = ' '; // GZ seems this space is wrong? int x = ra; p += 8; p[-1] = '0' + (x % 10); x /= 10; @@ -157,7 +157,7 @@ bool Lx200CommandSetSelectedDec::writeCommandToBuffer(char *&p, char *end) *p++ = ':'; *p++ = 'S'; *p++ = 'd'; - *p++ = ' '; +// *p++ = ' '; // GZ seems this space is wrong? int x = dec; if (x < 0) { @@ -174,7 +174,7 @@ bool Lx200CommandSetSelectedDec::writeCommandToBuffer(char *&p, char *end) p[-3] = ':'; p[-4] = '0' + (x % 10); x /= 10; p[-5] = '0' + (x % 6); x /= 6; - p[-6] = '\xDF'; // = 223, degree symbol + p[-6] = '*'; // '\xDF'; // = 223, degree symbol. GZ: Should be asterisk, according to specs. p[-7] = '0' + (x % 10); x /= 10; p[-8] = '0' + static_cast(x); *p++ = '#'; @@ -492,11 +492,11 @@ int Lx200CommandGetDec::readAnswerFromBuffer(const char *&buff, dec = ((*p++) - '0'); dec *= 10; dec += ((*p++) - '0'); - if (*p++ != (static_cast(223))) + if (*p++ != ('*')) { *log_file << Now() << "Lx200CommandGetDec::readAnswerFromBuffer: " - "error: degree sign expected" + "error: degree sign (*) expected" << endl; } diff --git a/plugins/TelescopeControl/src/Lx200/Lx200Command.hpp b/plugins/TelescopeControl/src/Lx200/Lx200Command.hpp index ea55caf4283a4..b52105101d161 100644 --- a/plugins/TelescopeControl/src/Lx200/Lx200Command.hpp +++ b/plugins/TelescopeControl/src/Lx200/Lx200Command.hpp @@ -86,7 +86,7 @@ class Lx200CommandStopSlew : public Lx200Command void print(QTextStream &o) const; }; -//! Meade LX200 command: Set right ascension. +//! Meade LX200 command: Set right ascension. LONG FORMAT ONLY! class Lx200CommandSetSelectedRa : public Lx200Command { public: @@ -100,7 +100,7 @@ class Lx200CommandSetSelectedRa : public Lx200Command const int ra; }; -//! Meade LX200 command: Set declination. +//! Meade LX200 command: Set declination. LONG FORMAT ONLY! class Lx200CommandSetSelectedDec : public Lx200Command { public: