Skip to content

Commit a98aff3

Browse files
committed
Fix typo testing the type field instead of the flags field.
1 parent f3c0cff commit a98aff3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hal/drivers/mesa-hostmot2/hm2_modbus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2480,7 +2480,7 @@ static int load_mbccb(hm2_modbus_inst_t *inst, const char *fname)
24802480
MSG_ERR("%s: error: Mbccb cmds %u, pin %u has invalid haltype %u\n", inst->name, c, x, xtype[x].htype);
24812481
goto errout;
24822482
}
2483-
if(xtype[x].htype & ~MBCCB_PINF_MASK) {
2483+
if(xtype[x].flags & ~MBCCB_PINF_MASK) {
24842484
MSG_ERR("%s: error: Mbccb cmds %u, pin %u has invalid flags 0x%02x\n", inst->name, c, x, xtype[x].flags);
24852485
goto errout;
24862486
}

0 commit comments

Comments
 (0)