mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-31 17:42:55 +08:00
Fix compilation issues
This commit is contained in:
parent
1b1a510fa5
commit
ed68f649a2
@ -22,9 +22,7 @@
|
||||
|
||||
#include "Checksum.h"
|
||||
|
||||
using namespace IO;
|
||||
|
||||
quint8 crc8(const QByteArray &data)
|
||||
quint8 IO::crc8(const QByteArray &data)
|
||||
{
|
||||
quint8 crc = 0xff;
|
||||
for (auto i = 0; i < data.length(); i++)
|
||||
@ -42,7 +40,7 @@ quint8 crc8(const QByteArray &data)
|
||||
return crc;
|
||||
}
|
||||
|
||||
quint16 crc16(const QByteArray &data)
|
||||
quint16 IO::crc16(const QByteArray &data)
|
||||
{
|
||||
quint8 x;
|
||||
quint16 crc = 0xFFFF;
|
||||
@ -57,7 +55,7 @@ quint16 crc16(const QByteArray &data)
|
||||
return crc;
|
||||
}
|
||||
|
||||
quint32 crc32(const QByteArray &data)
|
||||
quint32 IO::crc32(const QByteArray &data)
|
||||
{
|
||||
quint32 mask;
|
||||
quint32 crc = 0xFFFFFFFF;
|
||||
|
@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "Manager.h"
|
||||
#include "Checksum.h"
|
||||
|
||||
#include <Logger.h>
|
||||
#include <MQTT/Client.h>
|
||||
|
@ -27,8 +27,6 @@
|
||||
#include <QObject>
|
||||
#include <QIODevice>
|
||||
|
||||
#include "Checksum.h"
|
||||
|
||||
namespace IO
|
||||
{
|
||||
class Manager : public QObject
|
||||
@ -118,8 +116,6 @@ public:
|
||||
QString separatorSequence() const;
|
||||
QString receivedDataLength() const;
|
||||
|
||||
bool validateCrc(const QByteArray &buffer, quint32 crc, ChecksumType type);
|
||||
|
||||
Q_INVOKABLE QStringList dataSourcesList() const;
|
||||
Q_INVOKABLE qint64 writeData(const QByteArray &data);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user