[Keyboard] Fix jian backlight related ifdefs (#10679)

* Add jian backlight enabled ifdefs

* Fix adavnced layout LAYOUT_dips usage
daktil_manuform
KgOfHedgehogs 2020-10-23 05:16:33 +02:00 committed by GitHub
parent e7d8ccdbb2
commit 8cbaea9e8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 2 deletions

View File

@ -191,7 +191,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_QWERTY] = LAYOUT_base_wrapper(QWERTY_base),
#ifdef DIPS_ENABLE
[_DIPS] = LAYOUT_DIPS(\
[_DIPS] = LAYOUT_dips(\
LAYOUT0, LAYOUT1, LAYOUT2, LAYOUT3, DIP_ISO, FLIP_TH, \
LAYOUT0, LAYOUT1, LAYOUT2, LAYOUT3, DIP_ISO, FLIP_TH \
),

View File

@ -1,7 +1,7 @@
#include "nsrev2.h"
// TODO:
#ifdef SWAP_HANDS_ENABLE
__attribute__ ((weak))
const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
{{0, 4}, {1, 4}, {2, 4}, {3, 4}, {4, 4}, {5, 4}},
{{0, 5}, {1, 5}, {2, 5}, {3, 5}, {4, 5}, {5, 5}},
@ -14,6 +14,7 @@ const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
};
#endif
#ifdef BACKLIGHT_ENABLE
static bool backlight_was_toggled = false;
void suspend_power_down_kb(void) {
@ -29,6 +30,7 @@ void suspend_wakeup_init_kb(void) {
backlight_was_toggled = false;
}
}
#endif
#ifdef PHYSICAL_LEDS_ENABLE
void led_init_kb(void)

View File

@ -14,6 +14,7 @@ const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
};
#endif
#ifdef BACKLIGHT_ENABLE
static bool backlight_was_toggled = false;
void suspend_power_down_kb(void) {
@ -29,6 +30,7 @@ void suspend_wakeup_init_kb(void) {
backlight_was_toggled = false;
}
}
#endif
#ifdef PHYSICAL_LEDS_ENABLE
void led_init_kb(void)

View File

@ -14,6 +14,7 @@ const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
};
#endif
#ifdef BACKLIGHT_ENABLE
static bool backlight_was_toggled = false;
void suspend_power_down_kb(void) {
@ -29,6 +30,7 @@ void suspend_wakeup_init_kb(void) {
backlight_was_toggled = false;
}
}
#endif
#ifdef PHYSICAL_LEDS_ENABLE
void led_init_kb(void)