mkiiskila closed pull request #1103: sensor/lis2dw12: Fix lis2dw12_set_tap_cfg URL: https://github.com/apache/mynewt-core/pull/1103
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/hw/drivers/sensors/lis2dw12/src/lis2dw12.c b/hw/drivers/sensors/lis2dw12/src/lis2dw12.c index 48bbd30ccd..e449ee2026 100644 --- a/hw/drivers/sensors/lis2dw12/src/lis2dw12.c +++ b/hw/drivers/sensors/lis2dw12/src/lis2dw12.c @@ -1168,7 +1168,7 @@ int lis2dw12_set_tap_cfg(struct sensor_itf *itf, struct lis2dw12_tap_settings *c reg |= cfg->en_x ? LIS2DW12_TAP_THS_Z_X_EN : 0; reg |= cfg->en_y ? LIS2DW12_TAP_THS_Z_Y_EN : 0; reg |= cfg->en_z ? LIS2DW12_TAP_THS_Z_Z_EN : 0; - reg |= cfg->tap_ths_z & LIS2DW12_REG_TAP_THS_Z; + reg |= cfg->tap_ths_z & LIS2DW12_TAP_THS_Z_THS; rc = lis2dw12_write8(itf, LIS2DW12_REG_TAP_THS_Z, reg); if (rc) { ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services