From 5af362dbc43932946e72eee5517eb1b84da1e7eb Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Mon, 21 Nov 2016 07:13:28 +0100 Subject: [PATCH] LEDUtils: Fix the BreathState typedef Move the name after the struct, to silence a compiler warning with -Wall. Signed-off-by: Gergely Nagy --- src/LEDUtils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LEDUtils.h b/src/LEDUtils.h index 184388f6..12d978b3 100644 --- a/src/LEDUtils.h +++ b/src/LEDUtils.h @@ -2,10 +2,10 @@ #include "KeyboardConfig.h" -typedef struct BreathState { +typedef struct { uint8_t brightness = 0; // how bright the LED is int8_t fadeAmount = 1; // how many points to fade the LED by (can be negative) -}; +} BreathState; cRGB breath_compute (BreathState *state); cRGB hsv_to_rgb(uint16_t h, uint16_t s, uint16_t v);