make crc16 function accessible (#1857)

This commit is contained in:
Samuel Sieb 2021-06-02 21:13:42 -07:00 committed by GitHub
parent 11fb54c74e
commit 7bc51582f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,8 @@ class Modbus : public uart::UARTDevice, public Component {
std::vector<ModbusDevice *> devices_; std::vector<ModbusDevice *> devices_;
}; };
uint16_t crc16(const uint8_t *data, uint8_t len);
class ModbusDevice { class ModbusDevice {
public: public:
void set_parent(Modbus *parent) { parent_ = parent; } void set_parent(Modbus *parent) { parent_ = parent; }