summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Liu <joshua.liu@sourceobby.com>2025-06-22 21:42:58 -0400
committerJoshua Liu <joshua.liu@sourceobby.com>2025-06-22 21:42:58 -0400
commit323609e742d0cdc39842907530f98048a62419eb (patch)
tree247f1557ece65866827f972866168017692073e6
parent4141d9b0dd04200aee0a2fee893081665bafdd8a (diff)
style: mostly style changes, although I did add an error fprintf in the init function
-rw-r--r--streamdeck.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/streamdeck.c b/streamdeck.c
index ffd0d08..28e5a03 100644
--- a/streamdeck.c
+++ b/streamdeck.c
@@ -51,7 +51,8 @@ init ()
/*
* Init the HIDAPI library
*/
- if (hid_init() < 0) {
+ if (hid_init() < 0)
+ {
(void) fprintf(stderr, "Could not init the HID library\n");
return -1;
}
@@ -61,6 +62,7 @@ init ()
*/
if (pthread_mutex_init(&inflate_lock, NULL))
{
+ (void) fprintf(stderr, "Could not init lock\n");
return -2;
}
@@ -203,7 +205,7 @@ set_key_image(streamdeck* deck, int key, image* img)
int
update_current_folder (screen* folder)
{
- for (int i = 0; i < MINI_KEYS ; i++ )
+ for (int i = 0; i < STREAMDECK_MINI; i++ )
{
}