From f1577320e6697d44fb0ac94fa81a8ff0d7e13e0d Mon Sep 17 00:00:00 2001 From: Dave Nardella Date: Sat, 15 Mar 2025 12:27:17 +0100 Subject: [PATCH] Fixed %MW0 access --- webserver/core/modbus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webserver/core/modbus.cpp b/webserver/core/modbus.cpp index 3184413..6dd9d9d 100755 --- a/webserver/core/modbus.cpp +++ b/webserver/core/modbus.cpp @@ -339,7 +339,7 @@ void ReadHoldingRegisters(unsigned char *buffer, int bufferSize) for(int i = 0; i < WordDataLength; i++) { int position = Start + i; - if (position < MIN_16B_RANGE) + if (position < MIN_16B_RANGE) { if (int_output[position] != NULL) {