Skip to content

Commit

Permalink
userspace/community layout fixes (#19998)
Browse files Browse the repository at this point in the history
* fixup: improve AVR detection for 60_iso/unxmaal

* fixup: moved TAP_CODE_DELAY to mechmerlin/config.h

* fixup: move talljoe.c to INTROSPECTION_KEYMAP_C

* fixup: AVR/RGBLIGHT criteria for 60_iso/unxmaal
  • Loading branch information
lesshonor committed Mar 15, 2023
1 parent 291834b commit 70bf714
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
9 changes: 6 additions & 3 deletions layouts/community/60_iso/unxmaal/rules.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Only enable RGB on avr boards
ifndef MCU_FAMILY
RGBLIGHT_ENABLE = yes # Enable RGB Underglow
# Only enable RGBLIGHT on avr boards
ifeq ($(strip $(PLATFORM_KEY)),avr)
# ...that are at least prepared for it
ifdef RGBLIGHT_DRIVER
RGBLIGHT_ENABLE = yes # Enable RGB Underglow
endif
endif
2 changes: 2 additions & 0 deletions users/mechmerlin/config.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#define TAP_CODE_DELAY 10

#ifdef RGBLIGHT_ENABLE
#define RGBLIGHT_SLEEP
#define RGBLIGHT_EFFECT_BREATHING
Expand Down
4 changes: 1 addition & 3 deletions users/mechmerlin/mechmerlin.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#include "mechmerlin.h"
#include "version.h"

#define TAP_CODE_DELAY 10

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
static uint16_t fnx_layer_timer;

Expand All @@ -26,4 +24,4 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
break;
}
return true;
}
}
4 changes: 3 additions & 1 deletion users/talljoe/rules.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
SRC += talljoe.c macros.c $(wildcard users/talljoe/tapdance/*.c)
INTROSPECTION_KEYMAP_C = talljoe.c

SRC += macros.c $(wildcard users/talljoe/tapdance/*.c)
ifeq ($(strip $(VISUALIZER_ENABLE)), yes)
SRC += visualizer.c
endif
Expand Down

0 comments on commit 70bf714

Please sign in to comment.