summaryrefslogtreecommitdiffstats
path: root/users/brandonschlack
diff options
context:
space:
mode:
Diffstat (limited to 'users/brandonschlack')
-rw-r--r--users/brandonschlack/process_records.h6
-rw-r--r--users/brandonschlack/rgb_bs.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/users/brandonschlack/process_records.h b/users/brandonschlack/process_records.h
index 057233fb0e..b377ffaed2 100644
--- a/users/brandonschlack/process_records.h
+++ b/users/brandonschlack/process_records.h
@@ -119,9 +119,9 @@ void matrix_scan_cmd_tab(void);
* Common shortcuts used in macOS
* Reference: https://support.apple.com/en-us/HT201236
*/
-#define MC_POWR KC_POWER // Power (KC_POWER)
-#define MC_SLEP LOPT(LCMD(KC_POWER)) // Sleep (Option-Command-Power)
-#define MC_SLPD LCTL(LSFT(KC_POWER)) // Sleep Display (Control-Shift-Power)
+#define MC_POWR KC_PWR // Power (KC_PWR)
+#define MC_SLEP LOPT(LCMD(KC_PWR)) // Sleep (Option-Command-Power)
+#define MC_SLPD LCTL(LSFT(KC_PWR)) // Sleep Display (Control-Shift-Power)
#define MC_LOCK LCTL(LCMD(KC_Q)) // Lock Screen (Control-Command-Q)
#define MC_MSSN KC_FIND // Mission Control: Configure karabiner for find -> mission_control
#define MC_LHPD KC_MENU // Launchpad: Configure karabiner for menu -> launchpad
diff --git a/users/brandonschlack/rgb_bs.c b/users/brandonschlack/rgb_bs.c
index 1abf785b49..6b88503f41 100644
--- a/users/brandonschlack/rgb_bs.c
+++ b/users/brandonschlack/rgb_bs.c
@@ -75,7 +75,7 @@ void rgb_theme_step_reverse(void) {
rgb_theme_color_t get_rgb_theme_color(uint8_t index) {
rgb_theme_t theme = get_rgb_theme();
- size_t rgb_theme_color_max = sizeof theme.colors / sizeof *theme.colors;
+ size_t rgb_theme_color_max = ARRAY_SIZE(theme.colors);
if (index == _ADJUST) {
return default_adjust;
@@ -98,7 +98,7 @@ void rgb_theme_layer(layer_state_t state) {
#ifdef RGB_MATRIX_ENABLE
void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue, uint8_t led_type) {
- for (int i = 0; i < DRIVER_LED_TOTAL; i++) {
+ for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) {
if (!HAS_ANY_FLAGS(g_led_config.flags[i], led_type)) {
rgb_matrix_set_color( i, red, green, blue );
}