From a6a69ac28983e1094aa953e267ed1ac9790a61e9 Mon Sep 17 00:00:00 2001
From: Terraneo Federico <fede.tft@miosix.org>
Date: Sun, 26 Mar 2023 17:09:12 +0200
Subject: [PATCH] Fix ConditionVariable::timedWait

---
 miosix/kernel/sync.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/miosix/kernel/sync.h b/miosix/kernel/sync.h
index bc485215..af1c979f 100644
--- a/miosix/kernel/sync.h
+++ b/miosix/kernel/sync.h
@@ -444,9 +444,9 @@ public:
      * \return whether the return was due to a timout or wakeup
      */
     template<typename T>
-    TimedWaitResult wait(Lock<T>& l, long long absTime)
+    TimedWaitResult timedWait(Lock<T>& l, long long absTime)
     {
-        return timedWait(l.get());
+        return timedWait(l.get(),absTime);
     }
 
     /**
-- 
GitLab