summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2015-10-10 21:04:14 +0200
committerAlfred E. Heggestad <aeh@db.org>2015-10-10 21:04:14 +0200
commitdf805d411841359d52f553fe2cf38447399fceaa (patch)
tree2e391e98f717adad7cdcc66b88e35b720bb126d7
parentdc1b882d38e35ee2c084273392ec4e8c1b1ab9bd (diff)
rst: use sys_msleep for sleeping 4 milliseconds
-rw-r--r--modules/rst/audio.c2
-rw-r--r--modules/rst/video.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/rst/audio.c b/modules/rst/audio.c
index 2eca230..f6dd4e8 100644
--- a/modules/rst/audio.c
+++ b/modules/rst/audio.c
@@ -67,7 +67,7 @@ static void *play_thread(void *arg)
while (st->run) {
- (void)usleep(4000);
+ sys_msleep(4);
now = tmr_jiffies();
diff --git a/modules/rst/video.c b/modules/rst/video.c
index adf2495..139c9f7 100644
--- a/modules/rst/video.c
+++ b/modules/rst/video.c
@@ -62,7 +62,7 @@ static void *video_thread(void *arg)
while (st->run) {
- (void)usleep(4000);
+ sys_msleep(4);
now = tmr_jiffies();