Skip to content

Commit

Permalink
At least get the color right
Browse files Browse the repository at this point in the history
Signed-off-by: Evy Bongers <[email protected]>
  • Loading branch information
EvyBongers committed Feb 18, 2024
1 parent c48d82e commit 3466ba3
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ class LEDSolidColor : public Plugin,

LEDSolidColor(char *color, uint8_t r, uint8_t g, uint8_t b)
: r_(r), g_(g), b_(b) {
char *format = "SolidColorEffect: %s";
int size = strlen(format) - 2 + strlen(color);
snprintf(ledModeName, size, format, color);
ledModeName = color;
}

// This class' instance has dynamic lifetime
Expand Down

0 comments on commit 3466ba3

Please sign in to comment.