Commit 269e943abf05cb84a3f0303bbb90db20053fd9f5

Authored by Josh Kelley
Committed by Stéphane Raimbault
1 parent db6962ee

Fix typo

EMBBADCRC, not EMBADCRC
Showing 1 changed file with 1 additions and 1 deletions
src/modbus-rtu.c
... ... @@ -355,7 +355,7 @@ static int _modbus_rtu_pre_check_confirmation(modbus_t *ctx, const uint8_t *req,
355 355  
356 356 /* The check_crc16 function shall return 0 is the message is ignored and the
357 357 message length if the CRC is valid. Otherwise it shall return -1 and set
358   - errno to EMBADCRC. */
  358 + errno to EMBBADCRC. */
359 359 static int _modbus_rtu_check_integrity(modbus_t *ctx, uint8_t *msg,
360 360 const int msg_length)
361 361 {
... ...