LEDUtils: Fix the BreathState typedef

Move the name after the struct, to silence a compiler warning with
-Wall.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/45/head
Gergely Nagy 8 years ago
parent 4fc567cea5
commit 5af362dbc4

@ -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);

Loading…
Cancel
Save