core: Fix variable init and header include (#7626)

tmk backport from tmk/tmk_keyboard@325a99acd9
This commit is contained in:
Drashna Jaelre 2019-12-14 04:00:09 -08:00 committed by Joel Challis
parent 1f26101f0e
commit 0374677814

View file

@ -48,7 +48,7 @@ action_t action_for_key(uint8_t layer, keypos_t key) {
// keycode remapping // keycode remapping
keycode = keycode_config(keycode); keycode = keycode_config(keycode);
action_t action; action_t action = {};
uint8_t action_layer, when, mod; uint8_t action_layer, when, mod;
switch (keycode) { switch (keycode) {