Skip to content

Commit

Permalink
Linux fix pt3
Browse files Browse the repository at this point in the history
  • Loading branch information
Demo User committed Apr 27, 2018
1 parent 7c416c5 commit edfd159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/I2C.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ uint8_t I2C::write_byte(uint8_t data)
if (fd != -1)
{

if (write(fd, data, sizeof(data)) != 1)
if (write(fd, &data, sizeof(data)) != 1)
{
syslog(LOG_ERR,
"Failed to write to I2C Slave 0x%x [write_byte():write %d]",
Expand Down

0 comments on commit edfd159

Please sign in to comment.