1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-08 06:12:20 +01:00

modbus: fix queue deduplicator erasing custom commands (#3650)

This commit is contained in:
Javier Peletier
2022-07-24 22:06:18 +02:00
committed by GitHub
parent e0555e140f
commit d10300c330
2 changed files with 12 additions and 2 deletions

View File

@@ -395,6 +395,8 @@ class ModbusCommandItem {
ModbusController *modbusdevice, const std::vector<uint16_t> &values,
std::function<void(ModbusRegisterType register_type, uint16_t start_address, const std::vector<uint8_t> &data)>
&&handler = nullptr);
bool is_equal(const ModbusCommandItem &other);
};
/** Modbus controller class.