mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 22:48:10 +01:00
make crc16 function accessible (#1857)
This commit is contained in:
parent
11fb54c74e
commit
7bc51582f0
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue