Resolve macOS compile warnings
parent
399c72e61d
commit
bbcc5b2d7b
|
|
@ -20,7 +20,7 @@ namespace icsneo {
|
||||||
|
|
||||||
class Communication {
|
class Communication {
|
||||||
public:
|
public:
|
||||||
Communication(std::shared_ptr<ICommunication> com, std::shared_ptr<Packetizer> p, std::shared_ptr<Decoder> md) : impl(com), packetizer(p), decoder(md) {}
|
Communication(std::shared_ptr<ICommunication> com, std::shared_ptr<Packetizer> p, std::shared_ptr<Decoder> md) : packetizer(p), decoder(md), impl(com) {}
|
||||||
virtual ~Communication() { close(); }
|
virtual ~Communication() { close(); }
|
||||||
|
|
||||||
bool open();
|
bool open();
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,6 @@ private:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -12,6 +12,6 @@ public:
|
||||||
Command command;
|
Command command;
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -19,6 +19,6 @@ public:
|
||||||
bool hasPCBSerial = false;
|
bool hasPCBSerial = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -96,7 +96,7 @@ void MultiChannelCommunication::readTask() {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
for(auto i = 0; i < currentReadIndex; i++)
|
for(size_t i = 0; i < currentReadIndex; i++)
|
||||||
usbReadFifo.pop_front();
|
usbReadFifo.pop_front();
|
||||||
|
|
||||||
payloadBytes.clear();
|
payloadBytes.clear();
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ using namespace icsneo;
|
||||||
|
|
||||||
uint8_t Packetizer::ICSChecksum(const std::vector<uint8_t>& data) {
|
uint8_t Packetizer::ICSChecksum(const std::vector<uint8_t>& data) {
|
||||||
uint32_t checksum = 0;
|
uint32_t checksum = 0;
|
||||||
for(auto i = 0; i < data.size(); i++)
|
for(size_t i = 0; i < data.size(); i++)
|
||||||
checksum += data[i];
|
checksum += data[i];
|
||||||
checksum = ~checksum;
|
checksum = ~checksum;
|
||||||
checksum++;
|
checksum++;
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ namespace icsneo {
|
||||||
|
|
||||||
class Device {
|
class Device {
|
||||||
public:
|
public:
|
||||||
static constexpr char* SERIAL_FIND_ON_OPEN = "xxxxxx";
|
static constexpr const char* SERIAL_FIND_ON_OPEN = "xxxxxx";
|
||||||
|
|
||||||
Device(neodevice_t neodevice = {}) {
|
Device(neodevice_t neodevice = {}) {
|
||||||
data = neodevice;
|
data = neodevice;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue