update skyloong/gk104/q1 about layer switch.

This commit is contained in:
NaturalZh 2024-07-24 16:23:29 +08:00
parent 1742362c0b
commit 99d5cbe7e3
2 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
#if defined(DIP_SWITCH_MAP_ENABLE)
const uint16_t PROGMEM dip_switch_map[NUM_DIP_SWITCHES][NUM_DIP_STATES] = {
DIP_SWITCH_OFF_ON(TO(0), TO(1)),
DIP_SWITCH_OFF_ON(DF(0), DF(1)),
};
#endif
/*

View File

@ -207,11 +207,11 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
}
return true; // continue all further processing of this key
case TO(0):
case DF(0):
set_single_persistent_default_layer(0);
return true;
case TO(1):
case DF(1):
set_single_persistent_default_layer(1);
return true;