diff options
| author | Ryan <fauxpark@gmail.com> | 2023-07-03 04:24:22 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-02 19:24:22 +0100 |
| commit | 7ff80a57cbe57e888646c3b90e2f4f9dea977156 (patch) | |
| tree | 9917aa79a37e2c51124b63af094da8a96591313c /keyboards/satt | |
| parent | 9dbad1fa5c068c42f0e948242a2f1922824fbb22 (diff) | |
Get rid of `USB_LED_SCROLL_LOCK` (#21405)
Diffstat (limited to 'keyboards/satt')
| -rw-r--r-- | keyboards/satt/comet46/lib/host_led_state_reader.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/keyboards/satt/comet46/lib/host_led_state_reader.c b/keyboards/satt/comet46/lib/host_led_state_reader.c index 758fc4c1dc..e9910e0141 100644 --- a/keyboards/satt/comet46/lib/host_led_state_reader.c +++ b/keyboards/satt/comet46/lib/host_led_state_reader.c | |||
| @@ -4,12 +4,12 @@ | |||
| 4 | char host_led_state_str[22]; | 4 | char host_led_state_str[22]; |
| 5 | 5 | ||
| 6 | const char *read_host_led_state(void) { | 6 | const char *read_host_led_state(void) { |
| 7 | uint8_t leds = host_keyboard_leds(); | 7 | led_t led_state = host_keyboard_led_state(); |
| 8 | 8 | ||
| 9 | snprintf(host_led_state_str, sizeof(host_led_state_str), "Lock: %s%s%s", | 9 | snprintf(host_led_state_str, sizeof(host_led_state_str), "Lock: %s%s%s", |
| 10 | (leds & (1 << USB_LED_CAPS_LOCK)) ? "CAPL " : "", | 10 | led_state.caps_lock ? "CAPL " : "", |
| 11 | (leds & (1 << USB_LED_SCROLL_LOCK)) ? "SCRL " : "", | 11 | led_state.scroll_lock ? "SCRL " : "", |
| 12 | (leds & (1 << USB_LED_NUM_LOCK)) ? "NUML" : ""); | 12 | led_state.num_lock ? "NUML" : ""); |
| 13 | 13 | ||
| 14 | return host_led_state_str; | 14 | return host_led_state_str; |
| 15 | } | 15 | } |
