mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +01:00
Update modbus_controller.cpp (#3768)
This commit is contained in:
parent
5d712c73ea
commit
219c5953f1
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ size_t ModbusController::create_register_ranges_() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (curr->start_address == r.start_address) {
|
if (curr->start_address == r.start_address && curr->register_type == r.register_type) {
|
||||||
// use the lowest non zero value for the whole range
|
// use the lowest non zero value for the whole range
|
||||||
// Because zero is the default value for skip_updates it is excluded from getting the min value.
|
// Because zero is the default value for skip_updates it is excluded from getting the min value.
|
||||||
if (curr->skip_updates != 0) {
|
if (curr->skip_updates != 0) {
|
||||||
|
|
Loading…
Reference in a new issue