aboutsummaryrefslogtreecommitdiff
path: root/quantum/rgblight.c
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-09-27 04:42:40 +1000
committerGitHub <noreply@github.com>2020-09-26 19:42:40 +0100
commitc16ee227843dbdb23907fec50fdcad327aa359d7 (patch)
tree8e0743fe37f5d2899fbcb485a61b17b4c28bc107 /quantum/rgblight.c
parent1b7101f0654a4e6afd3998117bc5c040f86bb776 (diff)
downloadqmk_firmware-c16ee227843dbdb23907fec50fdcad327aa359d7.tar.gz
qmk_firmware-c16ee227843dbdb23907fec50fdcad327aa359d7.zip
`setrgb()`: Use arrow operator (#10451)
Diffstat (limited to 'quantum/rgblight.c')
-rw-r--r--quantum/rgblight.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c
index 211ec975a..76bb6eb8c 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) {
132void 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); } 132void 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); }
133 133
134void setrgb(uint8_t r, uint8_t g, uint8_t b, LED_TYPE *led1) { 134void setrgb(uint8_t r, uint8_t g, uint8_t b, LED_TYPE *led1) {
135 (*led1).r = r; 135 led1->r = r;
136 (*led1).g = g; 136 led1->g = g;
137 (*led1).b = b; 137 led1->b = b;
138#ifdef RGBW 138#ifdef RGBW
139 (*led1).w = 0; 139 led1->w = 0;
140#endif 140#endif
141} 141}
142 142