From 2071710a71b11610f96255ab33f4a48343e1e956 Mon Sep 17 00:00:00 2001 From: Richard Sailer Date: Sun, 4 Aug 2019 04:04:24 +0200 Subject: [PATCH] Make central data structure blinking_pattern an own data type --- src/tuxedo_keyboard.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tuxedo_keyboard.c b/src/tuxedo_keyboard.c index 1c2ecf4..5b3b8e9 100644 --- a/src/tuxedo_keyboard.c +++ b/src/tuxedo_keyboard.c @@ -154,11 +154,13 @@ static struct { .blinking_pattern = DEFAULT_BLINKING_PATTERN }; -static struct { +struct blinking_pattern { u8 key; u32 value; const char *const name; -} blinking_patterns[] = { +}; + +static struct blinking_pattern blinking_patterns[] = { { .key = 0,.value = 0,.name = "CUSTOM"}, { .key = 1,.value = 0x1002a000,.name = "BREATHE"}, { .key = 2,.value = 0x33010000,.name = "CYCLE"},