Skip to content

Commit

Permalink
setrgb(): Use arrow operator (qmk#10451)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored and drashna committed Nov 24, 2020
1 parent e774f82 commit 1bf33f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions quantum/rgblight.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ void sethsv_raw(uint8_t hue, uint8_t sat, uint8_t val, LED_TYPE *led1) {
void sethsv(uint8_t hue, uint8_t sat, uint8_t val, LED_TYPE *led1) { sethsv_raw(hue, sat, val > RGBLIGHT_LIMIT_VAL ? RGBLIGHT_LIMIT_VAL : val, led1); }

void setrgb(uint8_t r, uint8_t g, uint8_t b, LED_TYPE *led1) {
(*led1).r = r;
(*led1).g = g;
(*led1).b = b;
led1->r = r;
led1->g = g;
led1->b = b;
#ifdef RGBW
(*led1).w = 0;
led1->w = 0;
#endif
}

Expand Down

0 comments on commit 1bf33f0

Please sign in to comment.