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/01/06 00:52:53 UTC

[GitHub] vrahane opened a new pull request #718: MYNEWT-881 SensorAPI: LIS2DH12 set thresh cb fix

vrahane opened a new pull request #718: MYNEWT-881 SensorAPI: LIS2DH12 set thresh cb fix
URL: https://github.com/apache/mynewt-core/pull/718
 
 
   There are two issues for calling lis2dh12_sensor_set_trigger_thresh() multiple times:
   
   1. gpio irq was not being released before doing a re-initialization
   2. srec was malloced and calling the function multiple times would have
   malloced additional memory without freeing it.
   
   Solution:
   1. Release the gpio irq
   2. Remove the malloc and add a ptr for the sensor in each type trait so
   that a sensor read could be performed in the irq handler.

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