Skip to content

Commit

Permalink
Fix BBIO_I2C_READ_BYTE command
Browse files Browse the repository at this point in the history
  • Loading branch information
bvernoux committed Apr 11, 2016
1 parent 6211644 commit b3f679d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydrabus/hydrabus_bbio_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void bbio_mode_i2c(t_hydra_console *con)
break;
case BBIO_I2C_READ_BYTE:
status = bsp_i2c_master_read_u8(proto->dev_num, &data);
cprintf(con, "\x01%c", data & 0xff);
cprintf(con, "%c", data & 0xff);
break;
case BBIO_I2C_ACK_BIT:
bsp_i2c_read_ack(proto->dev_num, TRUE);
Expand Down

0 comments on commit b3f679d

Please sign in to comment.