diff options
author | Ryan <fauxpark@gmail.com> | 2020-09-27 04:42:40 +1000 |
---|---|---|
committer | Drashna Jael're <drashna@live.com> | 2021-01-12 22:43:30 -0800 |
commit | 990b9654c986c923cf49325e82ea1b004384c2d3 (patch) | |
tree | b330b9b6b2fdf67ff7663b78b5ed5b4ce3a3cbc1 | |
parent | 204f4c4ea3f3fe8d41d679b040fd460e47a40f78 (diff) |
`setrgb()`: Use arrow operator (#10451)
-rw-r--r-- | quantum/rgblight.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c index 2aae7ed95f..5ed3e8ac5f 100644 --- a/quantum/rgblight.c +++ b/quantum/rgblight.c @@ -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 } |