diff options
author | Ryan <[email protected]> | 2024-03-21 15:43:26 +1100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-03-21 04:43:26 +0000 |
commit | 319ac3b27bbccc4906ba0316d9cc9226af763729 (patch) | |
tree | 21f84a438d2f521a3304faeda2186ba70ac33081 /keyboards/hineybush/hbcp | |
parent | 5b472a93dedeb5ce282dfabcd508b395e8078e0a (diff) | |
download | qmk_firmware-319ac3b27bbccc4906ba0316d9cc9226af763729.tar.gz qmk_firmware-319ac3b27bbccc4906ba0316d9cc9226af763729.zip |
Remove RGBLight `led[]` references (#23311)
Diffstat (limited to 'keyboards/hineybush/hbcp')
-rw-r--r-- | keyboards/hineybush/hbcp/hbcp.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/keyboards/hineybush/hbcp/hbcp.c b/keyboards/hineybush/hbcp/hbcp.c index 754b63b200..5b22c69007 100644 --- a/keyboards/hineybush/hbcp/hbcp.c +++ b/keyboards/hineybush/hbcp/hbcp.c @@ -49,21 +49,20 @@ bool led_update_kb(led_t led_state) { bool res = led_update_user(led_state); if (res) { if (led_state.caps_lock) { - sethsv_raw(HSV_CAPS, (rgb_led_t *)&led[0]); + rgblight_sethsv_at(HSV_CAPS, 0); } else { - sethsv(HSV_BLACK, (rgb_led_t *)&led[0]); + rgblight_sethsv_at(HSV_BLACK, 0); } if (led_state.num_lock) { - sethsv_raw(HSV_NLCK, (rgb_led_t *)&led[1]); + rgblight_sethsv_at(HSV_NLCK, 1); } else { - sethsv(HSV_BLACK, (rgb_led_t *)&led[1]); + rgblight_sethsv_at(HSV_BLACK, 1); } if (led_state.scroll_lock) { - sethsv_raw(HSV_SCRL, (rgb_led_t *)&led[2]); + rgblight_sethsv_at(HSV_SCRL, 2); } else { - sethsv(HSV_BLACK, (rgb_led_t *)&led[2]); + rgblight_sethsv_at(HSV_BLACK, 2); } - rgblight_set(); } return false; } |