mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] jacobrosenthal commented on a change in pull request #967: Add Wake Up configuration to LIS2DW12 driver
Date Wed, 28 Mar 2018 07:18:43 GMT
jacobrosenthal commented on a change in pull request #967: Add Wake Up configuration to LIS2DW12
driver
URL: https://github.com/apache/mynewt-core/pull/967#discussion_r177657146
 
 

 ##########
 File path: hw/drivers/sensors/lis2dw12/src/lis2dw12.c
 ##########
 @@ -1717,6 +1805,18 @@ lis2dw12_sensor_set_notification(struct sensor *sensor, sensor_event_type_t
type
         return rc;
     }
 
+    /* enable double tap detection in wake_up_ths */
+    if(type == SENSOR_EVENT_TYPE_DOUBLE_TAP) {
+        wake_up_ths = lis2dw12->cfg.wake_up_ths;
 
 Review comment:
   Lets mask using LIS2DW12_WAKE_THS_THS

----------------------------------------------------------------
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

Mime
View raw message