Browse Source

fix(keymap): add brackets around if statement body

xmkb
Cody McGinnis 4 years ago
parent
commit
50643b2c56
  1. 4
      app/src/keymap.c

4
app/src/keymap.c

@ -94,7 +94,9 @@ int zmk_keymap_layer_deactivate(u8_t layer)
int zmk_keymap_layer_toggle(u8_t layer) int zmk_keymap_layer_toggle(u8_t layer)
{ {
if (zmk_keymap_layer_active(layer)) if (zmk_keymap_layer_active(layer))
return zmk_keymap_layer_deactivate(layer); {
return zmk_keymap_layer_deactivate(layer);
}
return zmk_keymap_layer_activate(layer); return zmk_keymap_layer_activate(layer);
}; };

Loading…
Cancel
Save