Fixed %MW0 access

This commit is contained in:
Dave Nardella
2025-03-15 12:27:17 +01:00
committed by GitHub
parent 8d570a1e73
commit f1577320e6
+1 -1
View File
@@ -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)
{