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 2019/02/09 01:50:21 UTC

[GitHub] reshtitus commented on a change in pull request #1637: [DO NOT MERGE] Support for one shot polling mode

reshtitus commented on a change in pull request #1637: [DO NOT MERGE] Support for one shot polling mode 
URL: https://github.com/apache/mynewt-core/pull/1637#discussion_r255281969
 
 

 ##########
 File path: hw/drivers/sensors/lps33hw/include/lps33hw/lps33hw.h
 ##########
 @@ -95,6 +95,13 @@ struct lps33hw {
 #if MYNEWT_VAL(BUS_DRIVER_PRESENT)
     bool node_is_spi;
 #endif
+#if MYNEWT_VAL(LPS33HW_ONE_SHOT_MODE)
+    sensor_type_t type;
+    sensor_data_func_t data_func;
+    struct sensor_read_ctx ctx;
 
 Review comment:
   They are different functions and we need both.

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