Skip to content

Commit

Permalink
Merge pull request #32 from JoshDreamland/patch-1
Browse files Browse the repository at this point in the history
Use macros for SPEED/BRIGHTNESS
  • Loading branch information
wroberts authored Dec 16, 2019
2 parents a5e6548 + 4e7a3e3 commit d5093b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rogauracore.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ typedef struct {
ScalarDef scalars[MAX_NUM_SCALARS];
} FunctionRecord;

const ScalarDef SPEED = { "SPEED", "speed", 1, 3 };
const ScalarDef BRIGHTNESS = { "BRIGHTNESS", "brightness", 0, 3 };

// ------------------------------------------------------------
// USB protocol for RGB keyboard
// ------------------------------------------------------------
Expand Down Expand Up @@ -273,6 +270,9 @@ rainbow(Arguments *args, Messages *messages) {
// Command line argument parsing
// ------------------------------------------------------------

#define SPEED { "SPEED", "speed", 1, 3 }
#define BRIGHTNESS { "BRIGHTNESS", "brightness", 0, 3 }

const FunctionRecord FUNCTION_RECORDS[] = {
{"single_static", &single_static, 1, 0},
{"single_breathing", &single_breathing, 2, 1, {SPEED}},
Expand Down

0 comments on commit d5093b1

Please sign in to comment.