From 4141d9b0dd04200aee0a2fee893081665bafdd8a Mon Sep 17 00:00:00 2001 From: Joshua Liu Date: Thu, 19 Jun 2025 23:06:49 -0400 Subject: feat: removed more unnecessary macro constants and moved enumeration declaration into devdetails.h --- devdetails.h | 4 ++-- streamdeck.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/devdetails.h b/devdetails.h index a9e21bd..101f394 100644 --- a/devdetails.h +++ b/devdetails.h @@ -1,8 +1,6 @@ #define MINI_VENID 0x0fd9 #define MINI_PROID 0x0063 -#define MINI_KEYS 6 - static unsigned char BLANK_KEY_IMAGE[] = { 0x42, 0x4d, 0xf6, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00, @@ -12,3 +10,5 @@ static unsigned char BLANK_KEY_IMAGE[] = { 0x00, 0x00, 0xc4, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; + +enum numkeys {STREAMDECK_ORIG = 12, STREAMDECK_MINI = 6}; diff --git a/streamdeck.h b/streamdeck.h index 0e2ed60..0455aef 100644 --- a/streamdeck.h +++ b/streamdeck.h @@ -23,7 +23,6 @@ typedef struct Screen screen; typedef struct Streamdeck streamdeck; typedef struct Handler handler; -enum numkeys {STREAMDECK_ORIG = 12, STREAMDECK_MINI = 6}; streamdeck* connect(); int close(); -- cgit v1.2.3