aboutsummaryrefslogtreecommitdiffstats
path: root/src/simulator
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-11 13:37:06 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-11 13:37:06 +0200
commit84a9fcee486dd5a92ee02e58ecfa98e09cf244a0 (patch)
tree127d49a02f7c1c04e6f4d7a885841d23cd8a02b5 /src/simulator
parentc5743bb412d50d81d01351750c31e38d3c13c020 (diff)
downloadglutte-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.c2
-rw-r--r--src/simulator/src/GPIO/temperature.c2
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));
}
}