X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/161263af475a9f1ea4ded0a6ee2858281ffc5624..a9364a866f99334f3aee5a58480ae5bc5e7a5a02:/LUFA/Drivers/USB/Core/USBTask.h 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: */