Skip to content

Commit 61d434e

Browse files
fix min data length for custom functions (#594)
1 parent 8d2533d commit 61d434e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/tcpport.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const crc16 = require("../utils/crc16");
99
/* TODO: const should be set once, maybe */
1010
const MODBUS_PORT = 502; // modbus port
1111
const MAX_TRANSACTIONS = 256; // maximum transaction to wait for
12-
const MIN_DATA_LENGTH = 6;
12+
const MIN_DATA_LENGTH = 4; // custom function can have length 4
1313
const MIN_MBAP_LENGTH = 6;
1414
const CRC_LENGTH = 2;
1515

0 commit comments

Comments
 (0)