vrahane commented on a change in pull request #418: MYNEWT-808 Adding support 
for I2C LIS2DH12 driver
URL: https://github.com/apache/mynewt-core/pull/418#discussion_r127782941
 
 

 ##########
 File path: hw/drivers/sensors/lis2dh12/src/lis2dh12.c
 ##########
 @@ -860,6 +1089,8 @@ lis2dh12_config(struct lis2dh12 *lis2dh12, struct 
lis2dh12_cfg *cfg)
 
     lis2dh12->cfg.lc_s_mask = cfg->lc_s_mask;
 
+    os_time_delay((OS_TICKS_PER_SEC * 110)/1000);
 
 Review comment:
   Sorry, I was trying different configs in a desperate attempt to get it 
working. This delay is needed for any initial interrupts that might occur but 
for the polling config it really doesn't matter. Removing it.
 
----------------------------------------------------------------
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

Reply via email to