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

Change variable "skip_updates" and "skip_updates_counter" type from "uint8_t" to "uint16_t" (#4487)

* change 'skip_updates'from 'uint8' to 'uint16_t'

* Delete modbus_controller_fix.md

* Update modbus_controller.h

---------

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
GitforZhangXL
2023-02-27 06:35:00 +08:00
committed by GitHub
parent eceb79ceab
commit 86407b9f6f
7 changed files with 10 additions and 10 deletions

View File

@@ -246,7 +246,7 @@ class SensorItem {
uint8_t offset;
uint8_t register_count;
uint8_t response_bytes{0};
uint8_t skip_updates;
uint16_t skip_updates;
std::vector<uint8_t> custom_data{};
bool force_new_range{false};
};
@@ -288,9 +288,9 @@ struct RegisterRange {
uint16_t start_address;
ModbusRegisterType register_type;
uint8_t register_count;
uint8_t skip_updates; // the config value
SensorSet sensors; // all sensors of this range
uint8_t skip_updates_counter; // the running value
uint16_t skip_updates; // the config value
SensorSet sensors; // all sensors of this range
uint16_t skip_updates_counter; // the running value
};
class ModbusCommandItem {