From 790da4dec335b6d4df4925a97f14064b960baa6a Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Tue, 18 Apr 2017 10:20:14 -1000 Subject: [PATCH] Kinetis:hrt stub - to get to command prompt --- src/drivers/kinetis/drv_hrt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/kinetis/drv_hrt.c b/src/drivers/kinetis/drv_hrt.c index 372ea2495d..533d23f01a 100644 --- a/src/drivers/kinetis/drv_hrt.c +++ b/src/drivers/kinetis/drv_hrt.c @@ -555,7 +555,7 @@ hrt_abstime hrt_absolute_time(void) { hrt_abstime abstime; - uint32_t count; + static uint32_t count = 0; irqstate_t flags; /* @@ -571,7 +571,7 @@ hrt_absolute_time(void) flags = px4_enter_critical_section(); /* get the current counter value */ - count = rCNT; + count++; /* * Determine whether the counter has wrapped since the