summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/storage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/storage.c b/firmware/storage.c
index ceae98fa40..1dd315948c 100644
--- a/firmware/storage.c
+++ b/firmware/storage.c
@@ -71,7 +71,7 @@ static void storage_wait_turn(IF_MD_NONVOID(int drive))
71#ifndef HAVE_MULTIDRIVE 71#ifndef HAVE_MULTIDRIVE
72 int drive=0; 72 int drive=0;
73#endif 73#endif
74 int my_prio = thread_get_io_priority(thread_get_current()); 74 int my_prio = thread_get_io_priority(THREAD_ID_CURRENT);
75 int loops=my_prio; 75 int loops=my_prio;
76 while(storage_should_wait(drive, my_prio) && (loops--)>=0) 76 while(storage_should_wait(drive, my_prio) && (loops--)>=0)
77 { 77 {