Add getters for number of corrupt and total packets received over serial

This commit is contained in:
jacobperron 2016-02-12 17:22:15 -08:00
parent d379c46012
commit 8a3209d6a1
2 changed files with 35 additions and 26 deletions

View file

@ -100,6 +100,8 @@ namespace create {
inline bool connected() const { return port.is_open(); };
bool send(const uint8_t* bytes, const uint32_t numBytes);
bool sendOpcode(const Opcode& code);
uint64_t getNumCorruptPackets();
uint64_t getNumTotalPackets();
};
} // namespace create