From 1c3d2376a653b643d40b09ba0298e0420e0e3140 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 15 May 2009 14:20:14 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@971 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/include/channels.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/include/channels.h b/src/include/channels.h index 791572b75..a1c538f62 100644 --- a/src/include/channels.h +++ b/src/include/channels.h @@ -151,7 +151,7 @@ typedef struct { * @return A byte value from the queue or: * @retval Q_RESET if the channel associated queue (if any) was reset. */ -#define chIOGet(ip) ((ip)->vmt->m0.put(ip, TIME_INFINITE)) +#define chIOGet(ip) ((ip)->vmt->m0.get(ip, TIME_INFINITE)) /** * @brief Channel blocking byte read with timeout. @@ -168,7 +168,7 @@ typedef struct { * @retval Q_TIMEOUT if the specified time expired. * @retval Q_RESET if the channel associated queue (if any) was reset. */ -#define chIOGetTimeout(ip, timeout) ((ip)->vmt->m0.put(ip, timeout)) +#define chIOGetTimeout(ip, timeout) ((ip)->vmt->m0.get(ip, timeout)) #if CH_USE_EVENTS /** -- cgit v1.2.3