aboutsummaryrefslogtreecommitdiff
path: root/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2009-07-20 14:51:19 +0000
committerDean Camera <[email protected]>2009-07-20 14:51:19 +0000
commitbf50959b8016adbf6b295178b26b8173514dd060 (patch)
treeb445d0186a5c3b5f148a398d23247e7a70a1a1c0 /Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h
parent86819ba9d8e30e7eeefd79ece41094a42e521d78 (diff)
downloadqmk_firmware-bf50959b8016adbf6b295178b26b8173514dd060.tar.gz
qmk_firmware-bf50959b8016adbf6b295178b26b8173514dd060.zip
Simplify SideShow GUID compares via a macro.
Diffstat (limited to 'Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h')
-rw-r--r--Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h b/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h
index cea81ce660..eb76d7c42b 100644
--- a/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h
+++ b/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h
@@ -38,6 +38,8 @@
#include <LUFA/Drivers/USB/USB.h>
/* Macros: */
+ #define GUID_COMPARE(a, b) (memcmp(a, b, sizeof(GUID_t)) == 0)
+
#define ARRAY_ELEMENTS(x) (sizeof(x) / sizeof(x[0]))
#define UNICODE_STRING_t(x) struct \