aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Core
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2014-09-14 11:45:02 +1000
committerDean Camera <dean@fourwalledcubicle.com>2014-09-14 11:45:02 +1000
commit41634c45303643e3756b3af9d0123095942481bb (patch)
treef39030c861b8ff9225f31d0fecd5639934b68988 /LUFA/Drivers/USB/Core
parent6c8ebd70c763790c3550be9b9e8b81aa1e225415 (diff)
downloadlufa-41634c45303643e3756b3af9d0123095942481bb.tar.gz
lufa-41634c45303643e3756b3af9d0123095942481bb.tar.bz2
lufa-41634c45303643e3756b3af9d0123095942481bb.zip
Obsolete the old MACROS and MACROE convenience macros.
Diffstat (limited to 'LUFA/Drivers/USB/Core')
-rw-r--r--LUFA/Drivers/USB/Core/USBTask.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/LUFA/Drivers/USB/Core/USBTask.h b/LUFA/Drivers/USB/Core/USBTask.h
index 7c0917fc1..7205ea1da 100644
--- a/LUFA/Drivers/USB/Core/USBTask.h
+++ b/LUFA/Drivers/USB/Core/USBTask.h
@@ -186,9 +186,9 @@
#endif
/* Macros: */
- #define HOST_TASK_NONBLOCK_WAIT(Duration, NextState) MACROS{ USB_HostState = HOST_STATE_WaitForDevice; \
- WaitMSRemaining = (Duration); \
- PostWaitState = (NextState); }MACROE
+ #define HOST_TASK_NONBLOCK_WAIT(Duration, NextState) do { USB_HostState = HOST_STATE_WaitForDevice; \
+ WaitMSRemaining = (Duration); \
+ PostWaitState = (NextState); } while (0)
#endif
/* Disable C linkage for C++ Compilers: */