summaryrefslogtreecommitdiff
path: root/keyboards/satt
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/satt')
-rw-r--r--keyboards/satt/comet46/lib/host_led_state_reader.c8
-rw-r--r--keyboards/satt/vision/rules.mk2
2 files changed, 4 insertions, 6 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 @@
char host_led_state_str[22];
const char *read_host_led_state(void) {
- uint8_t leds = host_keyboard_leds();
+ led_t led_state = host_keyboard_led_state();
snprintf(host_led_state_str, sizeof(host_led_state_str), "Lock: %s%s%s",
- (leds & (1 << USB_LED_CAPS_LOCK)) ? "CAPL " : "",
- (leds & (1 << USB_LED_SCROLL_LOCK)) ? "SCRL " : "",
- (leds & (1 << USB_LED_NUM_LOCK)) ? "NUML" : "");
+ led_state.caps_lock ? "CAPL " : "",
+ led_state.scroll_lock ? "SCRL " : "",
+ led_state.num_lock ? "NUML" : "");
return host_led_state_str;
}
diff --git a/keyboards/satt/vision/rules.mk b/keyboards/satt/vision/rules.mk
index 0aeca0dd9f..7f4f202a1b 100644
--- a/keyboards/satt/vision/rules.mk
+++ b/keyboards/satt/vision/rules.mk
@@ -11,5 +11,3 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output
-# Enter lower-power sleep mode when on the ChibiOS idle thread
-OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE