From 1f84d40a008894570fe272602cd829b8a946d2fa Mon Sep 17 00:00:00 2001 From: Stefan Nilsson Date: Tue, 12 May 2020 23:34:40 +0200 Subject: [PATCH] typo --- src/modbus-rtu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modbus-rtu.c b/src/modbus-rtu.c index 56c812c..d602ee7 100644 --- a/src/modbus-rtu.c +++ b/src/modbus-rtu.c @@ -353,7 +353,7 @@ static int _modbus_rtu_pre_check_confirmation(modbus_t *ctx, const uint8_t *req, } } -/* The check_crc16 function shall return 0 is the message is ignored and the +/* The check_crc16 function shall return 0 if the message is ignored and the message length if the CRC is valid. Otherwise it shall return -1 and set errno to EMBBADCRC. */ static int _modbus_rtu_check_integrity(modbus_t *ctx, uint8_t *msg, -- libgit2 0.21.4