diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-06-05 22:25:39 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-06-05 22:25:39 +0200 |
commit | 19ae581a7791158276c2e0f6241cd98816d0126f (patch) | |
tree | c97fe8e56dff687db1a349ac55e81503e5b9ccc9 /src | |
parent | 327114f6c35a2c28004eb950baf5d1c1c175824a (diff) | |
download | glutte-o-matic-19ae581a7791158276c2e0f6241cd98816d0126f.tar.gz glutte-o-matic-19ae581a7791158276c2e0f6241cd98816d0126f.tar.bz2 glutte-o-matic-19ae581a7791158276c2e0f6241cd98816d0126f.zip |
Fix common_timestamp on stm32
Diffstat (limited to 'src')
-rw-r--r-- | src/common/src/Core/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/src/Core/common.c b/src/common/src/Core/common.c index 6f608ad..77d3360 100644 --- a/src/common/src/Core/common.c +++ b/src/common/src/Core/common.c @@ -150,7 +150,7 @@ int local_time(struct tm *time) { void common_init(void) { common_timer = xTimerCreate("Timer", - portTICK_PERIOD_MS, + pdMS_TO_TICKS(10), pdTRUE, // Auto-reload NULL, // No unique id common_increase_timestamp @@ -176,7 +176,7 @@ static void common_increase_timestamp(TimerHandle_t t) } #else - common_timestamp++; + common_timestamp += 10; #endif } |