Fix unimportant erros"
This commit is contained in:
parent
0d7f817975
commit
8041565c15
4 changed files with 5 additions and 5 deletions
|
@ -307,7 +307,7 @@ void process_record(keyrecord_t *record) {
|
|||
|
||||
void process_record_handler(keyrecord_t *record) {
|
||||
#if defined(COMBO_ENABLE) || defined(REPEAT_KEY_ENABLE)
|
||||
action_t action;
|
||||
action_t action = {0};
|
||||
if (record->keycode) {
|
||||
action = action_for_keycode(record->keycode);
|
||||
} else {
|
||||
|
@ -1153,7 +1153,7 @@ bool is_tap_record(keyrecord_t *record) {
|
|||
}
|
||||
|
||||
#if defined(COMBO_ENABLE) || defined(REPEAT_KEY_ENABLE)
|
||||
action_t action;
|
||||
action_t action = {0};
|
||||
if (record->keycode) {
|
||||
action = action_for_keycode(record->keycode);
|
||||
} else {
|
||||
|
|
|
@ -322,7 +322,7 @@ action_t store_or_get_action(bool pressed, keypos_t key) {
|
|||
*/
|
||||
uint8_t layer_switch_get_layer(keypos_t key) {
|
||||
#ifndef NO_ACTION_LAYER
|
||||
action_t action;
|
||||
action_t action = {0};
|
||||
action.code = ACTION_TRANSPARENT;
|
||||
|
||||
layer_state_t layers = layer_state | default_layer_state;
|
||||
|
|
|
@ -210,7 +210,7 @@ void clear_oneshot_layer_state(oneshot_fullfillment_t state) {
|
|||
* FIXME: needs doc
|
||||
*/
|
||||
bool is_oneshot_layer_active(void) {
|
||||
return get_oneshot_layer_state();
|
||||
return (bool)get_oneshot_layer_state();
|
||||
}
|
||||
|
||||
/** \brief set oneshot
|
||||
|
|
|
@ -56,7 +56,7 @@ action_t action_for_keycode(uint16_t keycode) {
|
|||
// keycode remapping
|
||||
keycode = keycode_config(keycode);
|
||||
|
||||
action_t action = {};
|
||||
action_t action = {0};
|
||||
uint8_t action_layer, mod;
|
||||
|
||||
(void)action_layer;
|
||||
|
|
Loading…
Add table
Reference in a new issue