Lx200Command.cpp   Lx200Command.cpp 
skipping to change at line 29 skipping to change at line 29
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this library; if not, write to the Free Software along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, US A. Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, US A.
*/ */
#include "Lx200Command.hpp" #include "Lx200Command.hpp"
#include "TelescopeClientDirectLx200.hpp" #include "TelescopeClientDirectLx200.hpp"
#include "LogFile.hpp" #include "LogFile.hpp"
#include <math.h> #include <cmath>
#include <stdlib.h> // abs
#include <QByteArray> #include <QByteArray>
using namespace std; using namespace std;
Lx200Command::Lx200Command(Server &server) Lx200Command::Lx200Command(Server &server)
: server(*static_cast<TelescopeClientDirectLx200*>(&server)), : server(*static_cast<TelescopeClientDirectLx200*>(&server)),
has_been_written_to_buffer(false) has_been_written_to_buffer(false)
{ {
} }
skipping to change at line 174 skipping to change at line 173
else else
{ {
*p++ = '+'; *p++ = '+';
} }
p += 8; p += 8;
p[-1] = '0' + (x % 10); x /= 10; p[-1] = '0' + (x % 10); x /= 10;
p[-2] = '0' + (x % 6); x /= 6; p[-2] = '0' + (x % 6); x /= 6;
p[-3] = ':'; p[-3] = ':';
p[-4] = '0' + (x % 10); x /= 10; p[-4] = '0' + (x % 10); x /= 10;
p[-5] = '0' + (x % 6); x /= 6; p[-5] = '0' + (x % 6); x /= 6;
p[-6] = 223; // degree symbol p[-6] = '\xDF'; // = 223, degree symbol
p[-7] = '0' + (x % 10); x /= 10; p[-7] = '0' + (x % 10); x /= 10;
p[-8] = '0' + x; p[-8] = '0' + x;
*p++ = '#'; *p++ = '#';
has_been_written_to_buffer = true; has_been_written_to_buffer = true;
return true; return true;
} }
int Lx200CommandSetSelectedDec::readAnswerFromBuffer(const char *&buff, int Lx200CommandSetSelectedDec::readAnswerFromBuffer(const char *&buff,
const char *end) const char *end)
{ {
 End of changes. 2 change blocks. 
3 lines changed or deleted 2 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/