mirror of
https://github.com/esphome/esphome.git
synced 2024-12-23 16:47:57 +01:00
make crc16 function accessible (#1857)
This commit is contained in:
parent
11fb54c74e
commit
7bc51582f0
@ -36,6 +36,8 @@ class Modbus : public uart::UARTDevice, public Component {
|
||||
std::vector<ModbusDevice *> devices_;
|
||||
};
|
||||
|
||||
uint16_t crc16(const uint8_t *data, uint8_t len);
|
||||
|
||||
class ModbusDevice {
|
||||
public:
|
||||
void set_parent(Modbus *parent) { parent_ = parent; }
|
||||
|
Loading…
Reference in New Issue
Block a user