vial: fix build with features disabled
This commit is contained in:
parent
4a95d01faa
commit
6a48f2be28
2 changed files with 8 additions and 0 deletions
|
|
@ -216,6 +216,7 @@ void vial_handle_cmd(uint8_t *msg, uint8_t length) {
|
|||
msg[1] = VIAL_COMBO_ENTRIES;
|
||||
break;
|
||||
}
|
||||
#ifdef VIAL_TAP_DANCE_ENABLE
|
||||
case dynamic_vial_tap_dance_get: {
|
||||
uint8_t idx = msg[3];
|
||||
vial_tap_dance_entry_t td = { 0 };
|
||||
|
|
@ -231,6 +232,8 @@ void vial_handle_cmd(uint8_t *msg, uint8_t length) {
|
|||
reload_tap_dance();
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
#ifdef VIAL_COMBO_ENABLE
|
||||
case dynamic_vial_combo_get: {
|
||||
uint8_t idx = msg[3];
|
||||
vial_combo_entry_t entry = { 0 };
|
||||
|
|
@ -245,6 +248,7 @@ void vial_handle_cmd(uint8_t *msg, uint8_t length) {
|
|||
msg[0] = dynamic_keymap_set_combo(idx, &entry);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
@ -278,6 +282,8 @@ static void vial_keycode_up(uint16_t keycode) {
|
|||
}
|
||||
}
|
||||
|
||||
static void vial_keycode_tap(uint16_t keycode) __attribute__((unused));
|
||||
|
||||
static void vial_keycode_tap(uint16_t keycode) {
|
||||
vial_keycode_down(keycode);
|
||||
|
||||
|
|
|
|||
|
|
@ -102,4 +102,6 @@ _Static_assert(sizeof(vial_combo_entry_t) == 10, "Unexpected size of the vial_co
|
|||
|
||||
#define COMBO_COUNT VIAL_COMBO_ENTRIES
|
||||
|
||||
#else
|
||||
#define VIAL_COMBO_ENTRIES 0
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue