Skip to content

Commit 9c8f6dc

Browse files
authored
57 change example logic (#59)
* fix handler explanation * Update readme * Update readme * change String to Array and pass uint16_t * change logic
1 parent 4fbc8c1 commit 9c8f6dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/full/full.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ uint8_t writeMemory(uint8_t fc, uint16_t address, uint16_t length)
198198
uint8_t value = slave.readRegisterFromBuffer(i);
199199

200200
// Check if the value is 0 (INPUT) or 1 (OUTPUT).
201-
if (value != INPUT || value != OUTPUT)
201+
if (value != INPUT && value != OUTPUT)
202202
{
203203
return STATUS_ILLEGAL_DATA_VALUE;
204204
}

0 commit comments

Comments
 (0)