Skip to content

Commit d5093b1

Browse files
authored
Merge pull request #32 from JoshDreamland/patch-1
Use macros for SPEED/BRIGHTNESS
2 parents a5e6548 + 4e7a3e3 commit d5093b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rogauracore.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,6 @@ typedef struct {
9898
ScalarDef scalars[MAX_NUM_SCALARS];
9999
} FunctionRecord;
100100

101-
const ScalarDef SPEED = { "SPEED", "speed", 1, 3 };
102-
const ScalarDef BRIGHTNESS = { "BRIGHTNESS", "brightness", 0, 3 };
103-
104101
// ------------------------------------------------------------
105102
// USB protocol for RGB keyboard
106103
// ------------------------------------------------------------
@@ -273,6 +270,9 @@ rainbow(Arguments *args, Messages *messages) {
273270
// Command line argument parsing
274271
// ------------------------------------------------------------
275272

273+
#define SPEED { "SPEED", "speed", 1, 3 }
274+
#define BRIGHTNESS { "BRIGHTNESS", "brightness", 0, 3 }
275+
276276
const FunctionRecord FUNCTION_RECORDS[] = {
277277
{"single_static", &single_static, 1, 0},
278278
{"single_breathing", &single_breathing, 2, 1, {SPEED}},

0 commit comments

Comments
 (0)