From 8ba2b0f4bc8cfb40eff6844d4d049eb2d491ee0c Mon Sep 17 00:00:00 2001 From: zedamota Date: Sat, 10 Apr 2010 20:31:13 +0000 Subject: [PATCH] Fixes Problem under Linux, teste ok under Ubuntu git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@474 ebee16cc-31ac-478f-84a7-5cbb03baadba --- ground/src/libs/qymodem/src/qymodem.cpp | 18 ++++++++------ ground/src/libs/qymodem/src/qymodem.h | 7 +++--- ground/src/libs/qymodem/src/qymodem_tx.cpp | 27 +++++++++++---------- ground/src/libs/qymodem/src/qymodem_tx.h | 9 ++++--- ground/src/libs/qymodem/src/qymodemsend.cpp | 23 ++++++++++-------- ground/src/libs/qymodem/src/qymodemsend.h | 1 - 6 files changed, 46 insertions(+), 39 deletions(-) diff --git a/ground/src/libs/qymodem/src/qymodem.cpp b/ground/src/libs/qymodem/src/qymodem.cpp index 9feaf6912..6425af47f 100644 --- a/ground/src/libs/qymodem/src/qymodem.cpp +++ b/ground/src/libs/qymodem/src/qymodem.cpp @@ -39,10 +39,10 @@ quint16 QymodemBase::UpdateCRC16(quint16 crcIn, quint8 byte) } -quint16 QymodemBase::CRC16(const char* data, size_t size) +quint16 QymodemBase::CRC16(const quint8* data, size_t size) { quint32 crc = 0; - const char* dataEnd = data+size; + const quint8* dataEnd = data+size; while(data