You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/05/30 11:54:53 UTC

[GitHub] sjanc closed pull request #1151: lis2dw12: Fix self testing function error

sjanc closed pull request #1151: lis2dw12: Fix self testing function error
URL: https://github.com/apache/mynewt-core/pull/1151
 
 
   

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 de48ba460b..ac1cca650f 100644
--- a/hw/drivers/sensors/lis2dw12/src/lis2dw12.c
+++ b/hw/drivers/sensors/lis2dw12/src/lis2dw12.c
@@ -1929,7 +1929,7 @@ int lis2dw12_run_self_test(struct sensor_itf *itf, int *result)
     int i;
     uint8_t prev_config[6];
     /* set config per datasheet, with positive self test mode enabled. */
-    uint8_t st_config[] = {0x44, 0x08, 0x40, 0x00, 0x00, 0x10};
+    uint8_t st_config[] = {0x44, 0x04, 0x40, 0x00, 0x00, 0x10};
 
     rc = lis2dw12_readlen(itf, LIS2DW12_REG_CTRL_REG1, prev_config, 6);
     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:
users@infra.apache.org


With regards,
Apache Git Services