Use K_MSEC macro in k_sleep calls

This is required by Zephyr 2.3, otherwise getting compile error.
This commit is contained in:
Martin Jäger
2020-05-11 12:26:41 +02:00
parent 9a5004e81d
commit 1bd8734a2e
4 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -72,7 +72,7 @@ void main(void)
#endif
// wait until all threads are spawned before activating the watchdog
k_sleep(2500);
k_sleep(K_MSEC(2500));
watchdog_start();
while (1) {
@@ -89,7 +89,7 @@ void main(void)
eeprom_update();
k_sleep(1000);
k_sleep(K_MSEC(1000));
}
}
@@ -161,7 +161,7 @@ void control_thread()
}
#endif
}
k_sleep(100);
k_sleep(K_MSEC(100));
}
}
@@ -182,7 +182,7 @@ void ext_mgr_thread()
last_call = now;
ext_mgr.process_1s();
}
k_sleep(1);
k_sleep(K_MSEC(1));
}
}