浏览代码

Fix typo

EMBBADCRC, not EMBADCRC
Josh Kelley 8 年之前
父节点
当前提交
269e943abf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modbus-rtu.c

+ 1 - 1
src/modbus-rtu.c

@@ -355,7 +355,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 is the message is ignored and the
    message length if the CRC is valid. Otherwise it shall return -1 and set
    message length if the CRC is valid. Otherwise it shall return -1 and set
-   errno to EMBADCRC. */
+   errno to EMBBADCRC. */
 static int _modbus_rtu_check_integrity(modbus_t *ctx, uint8_t *msg,
 static int _modbus_rtu_check_integrity(modbus_t *ctx, uint8_t *msg,
                                        const int msg_length)
                                        const int msg_length)
 {
 {