diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-06-11 13:37:06 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-06-11 13:37:06 +0200 |
commit | 84a9fcee486dd5a92ee02e58ecfa98e09cf244a0 (patch) | |
tree | 127d49a02f7c1c04e6f4d7a885841d23cd8a02b5 /src/simulator | |
parent | c5743bb412d50d81d01351750c31e38d3c13c020 (diff) | |
download | glutte-o-matic-84a9fcee486dd5a92ee02e58ecfa98e09cf244a0.tar.gz glutte-o-matic-84a9fcee486dd5a92ee02e58ecfa98e09cf244a0.tar.bz2 glutte-o-matic-84a9fcee486dd5a92ee02e58ecfa98e09cf244a0.zip |
prefer pdMS_TO_TICKS
Diffstat (limited to 'src/simulator')
-rw-r--r-- | src/simulator/src/Core/main.c | 2 | ||||
-rw-r--r-- | src/simulator/src/GPIO/temperature.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/simulator/src/Core/main.c b/src/simulator/src/Core/main.c index d190bce..215ead5 100644 --- a/src/simulator/src/Core/main.c +++ b/src/simulator/src/Core/main.c @@ -76,7 +76,7 @@ int gui_gps_custom_year_len; static void thread_gui_gps(void __attribute__ ((unused))*arg) { while(1) { - vTaskDelay(1000 / portTICK_RATE_MS); + vTaskDelay(pdMS_TO_TICKS(1000)); if (gui_gps_send_frame) { diff --git a/src/simulator/src/GPIO/temperature.c b/src/simulator/src/GPIO/temperature.c index 34b079c..ce38097 100644 --- a/src/simulator/src/GPIO/temperature.c +++ b/src/simulator/src/GPIO/temperature.c @@ -37,7 +37,7 @@ void temperature_task(void __attribute__ ((unused))*pvParameters) { _temperature_last_value = gui_temperature; _temperature_valid = gui_temperature_valid; - vTaskDelay(1000 / portTICK_PERIOD_MS); + vTaskDelay(pdMS_TO_TICKS(1000)); } } |