From 520b0e86fb823279b5fdc4b69593708b788f79b2 Mon Sep 17 00:00:00 2001 From: honorless <86894501+lesshonor@users.noreply.github.com> Date: Thu, 18 May 2023 12:36:38 -0400 Subject: [PATCH] feat: potentiometer toggle in rules.mk --- keyboards/tapedeck/config.h | 4 ---- keyboards/tapedeck/post_rules.mk | 4 ++++ keyboards/tapedeck/rules.mk | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 keyboards/tapedeck/post_rules.mk diff --git a/keyboards/tapedeck/config.h b/keyboards/tapedeck/config.h index 6d9a8e19a62b..d1c38e660a58 100644 --- a/keyboards/tapedeck/config.h +++ b/keyboards/tapedeck/config.h @@ -16,9 +16,5 @@ #pragma once -/* SLIDER */ -#define POT_ENABLE - /* RGB Default */ # define RGB_MATRIX_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_MOOD - diff --git a/keyboards/tapedeck/post_rules.mk b/keyboards/tapedeck/post_rules.mk new file mode 100644 index 000000000000..4663ac171da4 --- /dev/null +++ b/keyboards/tapedeck/post_rules.mk @@ -0,0 +1,4 @@ +ifeq ($(strip $(POT_ENABLE)), yes) + OPT_DEFS += -DPOT_ENABLE + QUANTUM_LIB_SRC += analog.c +endif diff --git a/keyboards/tapedeck/rules.mk b/keyboards/tapedeck/rules.mk index 3039719f6e61..8fca8bb0676b 100644 --- a/keyboards/tapedeck/rules.mk +++ b/keyboards/tapedeck/rules.mk @@ -1,4 +1,4 @@ # Build Options # change yes to no to disable # -QUANTUM_LIB_SRC += analog.c +POT_ENABLE = yes