aboutsummaryrefslogtreecommitdiffstats
path: root/Bootloaders
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 /Bootloaders
parent6c8ebd70c763790c3550be9b9e8b81aa1e225415 (diff)
downloadlufa-41634c45303643e3756b3af9d0123095942481bb.tar.gz
lufa-41634c45303643e3756b3af9d0123095942481bb.tar.bz2
lufa-41634c45303643e3756b3af9d0123095942481bb.zip
Obsolete the old MACROS and MACROE convenience macros.
Diffstat (limited to 'Bootloaders')
-rw-r--r--Bootloaders/MassStorage/Lib/SCSI.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Bootloaders/MassStorage/Lib/SCSI.h b/Bootloaders/MassStorage/Lib/SCSI.h
index d3b0ddd3b..3529fde60 100644
--- a/Bootloaders/MassStorage/Lib/SCSI.h
+++ b/Bootloaders/MassStorage/Lib/SCSI.h
@@ -55,9 +55,9 @@
* \param[in] Acode New SCSI additional sense key to set the additional sense code to
* \param[in] Aqual New SCSI additional sense key qualifier to set the additional sense qualifier code to
*/
- #define SCSI_SET_SENSE(Key, Acode, Aqual) MACROS{ SenseData.SenseKey = (Key); \
- SenseData.AdditionalSenseCode = (Acode); \
- SenseData.AdditionalSenseQualifier = (Aqual); }MACROE
+ #define SCSI_SET_SENSE(Key, Acode, Aqual) do { SenseData.SenseKey = (Key); \
+ SenseData.AdditionalSenseCode = (Acode); \
+ SenseData.AdditionalSenseQualifier = (Aqual); } while (0)
/** Macro for the \ref SCSI_Command_ReadWrite_10() function, to indicate that data is to be read from the storage medium. */
#define DATA_READ true