qmk_firmware/tmk_core/common
Drashna Jaelre e6266b19be Initialize Layer State on startup (#8318)
* Initialize Layer State on startup

Right now, on startup, the default layer state gets called and set, triggering the callback functions for the default layer state. However, the normal layer state never actually gets initialized.  It's set to 0 directly, by default, but the callback functions are never actually called.  This creates some inconsistency in the behavior for end users.  This adds a simple "clear" that triggers the callback on startup.  This should produce more consisten behavior between the two functions and layer masks.

* Stupid hack

* Fix type casting?

* Fix compile issues with magic is disabled
2020-08-29 14:30:02 -07:00
..
arm_atsam
avr
chibios Re-fix the STM32 dual-bank bootloader stuff. (#9738) 2020-08-29 14:30:02 -07:00
test
action.c
action.h
action_code.h
action_layer.c
action_layer.h Initialize Layer State on startup (#8318) 2020-08-29 14:30:02 -07:00
action_macro.c
action_macro.h
action_tapping.c
action_tapping.h
action_util.c [Bug] Fix Swap Hands bug introduced by OSH (#9968) 2020-08-08 16:41:10 -07:00
action_util.h
bootloader.h
bootmagic.c Initialize Layer State on startup (#8318) 2020-08-29 14:30:02 -07:00
bootmagic.h
bootmagic_lite.c
command.c
command.h
debug.c
debug.h
eeconfig.c
eeconfig.h
eeprom.h
host.c
host.h
host_driver.h
keyboard.c Hid joystick interface (#4226) 2020-08-29 14:30:02 -07:00
keyboard.h
keycode.h
led.h
magic.c Initialize Layer State on startup (#8318) 2020-08-29 14:30:02 -07:00
magic.h
matrix.h
mousekey.c Fix the mousekey scrolling (#9174) 2020-08-29 14:30:02 -07:00
mousekey.h
nodebug.h
print.c
print.h
progmem.h
raw_hid.h
report.c
report.h Hid joystick interface (#4226) 2020-08-29 14:30:02 -07:00
sendchar.h
sendchar_null.c
sendchar_uart.c
sleep_led.h
suspend.h
timer.h
uart.c
uart.h
util.c
util.h
virtser.h
wait.h