Skip to content

Commit

Permalink
Merge pull request #18353 from jan-mo/fix/20220721__drivers_lis2dh2_r…
Browse files Browse the repository at this point in the history
…elease_bug

drivers/lis2dh12: release instead of acquire
  • Loading branch information
benpicco authored Jul 21, 2022
2 parents de064b7 + c97d6e7 commit 2b56495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/lis2dh12/lis2dh12.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ void lis2dh12_cfg_disable_event(const lis2dh12_t *dev, uint8_t event, uint8_t li
{
uint8_t reg = 0;

_release(dev);
_acquire(dev);

/* read current interrupt configuration */
if (line == LIS2DH12_INT1) {
Expand Down

0 comments on commit 2b56495

Please sign in to comment.