Skip to content

Commit

Permalink
Fix accidental use of LOCK instead of UNLOCK in MS5611 driver.
Browse files Browse the repository at this point in the history
  • Loading branch information
linguini1 committed May 11, 2024
1 parent 508d977 commit f16145d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sensors/ms5611/ms5611.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ static errno_t ms5611_read_dreg(SensorLocation *loc, uint8_t dreg, uint32_t *val
}

// Unlock I2C bus
err = devctl(loc->bus, DCMD_I2C_LOCK, NULL, 0, NULL);
err = devctl(loc->bus, DCMD_I2C_UNLOCK, NULL, 0, NULL);

*value = 0;
*value += read_cmd[sizeof(read)] * 65536;
Expand Down

0 comments on commit f16145d

Please sign in to comment.