From 76bdcd2757a41ffb4a0809df5a654e2025957e73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Qu=E1=BB=91c=20H=C3=B9ng?= Date: Sun, 30 Jun 2024 23:03:16 +0700 Subject: [PATCH] Remove modbus config not use --- src/Modbus/ERaModbus.hpp | 1 + src/Modbus/ERaParse.hpp | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Modbus/ERaModbus.hpp b/src/Modbus/ERaModbus.hpp index b222019..d3bf7af 100644 --- a/src/Modbus/ERaModbus.hpp +++ b/src/Modbus/ERaModbus.hpp @@ -792,6 +792,7 @@ void ERaModbus::processModbusScan() { .len1 = 0, .len2 = 1, .extra = {}, + .delay = 20, .ipSlave = { .ip = { .dword = this->modbusScan->ipSlave.ip.dword diff --git a/src/Modbus/ERaParse.hpp b/src/Modbus/ERaParse.hpp index 54cddeb..a9d8ea3 100644 --- a/src/Modbus/ERaParse.hpp +++ b/src/Modbus/ERaParse.hpp @@ -56,14 +56,9 @@ typedef struct __ModbusConfig_t { uint8_t len1; uint8_t len2; uint8_t extra[10]; - uint8_t type; - uint8_t button; uint16_t delay; IPSlave_t ipSlave; uint8_t totalFail; - uint8_t sizeData; - uint8_t ack; - uint32_t value; } ModbusConfig_t; typedef struct __Action_t {