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/12/07 18:58:54 UTC

[GitHub] andrzej-kaczmarek closed pull request #1558: Convert Ticks to Millisecond In Battery Polling

andrzej-kaczmarek closed pull request #1558: Convert Ticks to Millisecond In Battery Polling
URL: https://github.com/apache/mynewt-core/pull/1558
 
 
   

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/battery/src/battery.c b/hw/battery/src/battery.c
index 2b13266e08..98a45cf1e3 100644
--- a/hw/battery/src/battery.c
+++ b/hw/battery/src/battery.c
@@ -506,7 +506,8 @@ battery_set_poll_rate_ms_delay(struct os_dev *battery, uint32_t poll_rate,
 
     bat->b_poll_rate = poll_rate;
     bat->b_next_run = os_time_get();
-    os_callout_reset(&battery_manager.bm_poll_callout, start_delay);
+    os_callout_reset(&battery_manager.bm_poll_callout,
+                     os_time_ms_to_ticks32(start_delay));
 
     return 0;
 }


 

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