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 adds support for the atmega328 (#9043) 2020-06-10 22:23:11 +01:00
chibios Re-fix the STM32 dual-bank bootloader stuff. (#9738) 2020-08-29 14:30:02 -07:00
test
action_code.h One shot support for swap hands (#8590) 2020-05-14 07:36:55 +10:00
action_layer.c Optimization for scanning less layers. (#8311) 2020-05-11 01:04:38 +01:00
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 2020 May 30 Breaking Changes Update (#9215) 2020-05-30 13:14:59 -07:00
action_tapping.h 2020 May 30 Breaking Changes Update (#9215) 2020-05-30 13:14:59 -07:00
action_util.c [Bug] Fix Swap Hands bug introduced by OSH (#9968) 2020-08-08 16:41:10 -07:00
action_util.h One shot support for swap hands (#8590) 2020-05-14 07:36:55 +10:00
action.c Add TAP_CODE_DELAY to Mod-Tap (#9422) 2020-07-07 21:47:59 +01:00
action.h
bootloader.h
bootmagic_lite.c
bootmagic.c Initialize Layer State on startup (#8318) 2020-08-29 14:30:02 -07:00
bootmagic.h
command.c Remove DESCRIPTION (#9732) 2020-07-16 15:49:18 +10:00
command.h
debug.c
debug.h
eeconfig.c
eeconfig.h
eeprom.h
host_driver.h
host.c
host.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 2020 May 30 Breaking Changes Update (#9215) 2020-05-30 13:14:59 -07:00
progmem.h
raw_hid.h
report.c
report.h Hid joystick interface (#4226) 2020-08-29 14:30:02 -07:00
sendchar_null.c
sendchar_uart.c
sendchar.h
sleep_led.h
suspend.h
timer.h
uart.c adds support for the atmega328 (#9043) 2020-06-10 22:23:11 +01:00
uart.h
util.c
util.h
virtser.h
wait.h