From 323609e742d0cdc39842907530f98048a62419eb Mon Sep 17 00:00:00 2001 From: Joshua Liu Date: Sun, 22 Jun 2025 21:42:58 -0400 Subject: style: mostly style changes, although I did add an error fprintf in the init function --- streamdeck.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'streamdeck.c') 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++ ) { } -- cgit v1.2.3