You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qmk-fw/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
5 years ago
..
arm_atsam
avr adds support for the atmega328 (#9043) 5 years ago
chibios Re-fix the STM32 dual-bank bootloader stuff. (#9738) 5 years ago
test
action.c Add TAP_CODE_DELAY to Mod-Tap (#9422) 5 years ago
action.h Fix compile issues related to NO_ACTION_MACRO/FUNCTION and LTO_ENABLE (#8663) 5 years ago
action_code.h One shot support for swap hands (#8590) 5 years ago
action_layer.c Optimization for scanning less layers. (#8311) 5 years ago
action_layer.h Initialize Layer State on startup (#8318) 5 years ago
action_macro.c
action_macro.h
action_tapping.c 2020 May 30 Breaking Changes Update (#9215) 5 years ago
action_tapping.h 2020 May 30 Breaking Changes Update (#9215) 5 years ago
action_util.c [Bug] Fix Swap Hands bug introduced by OSH (#9968) 5 years ago
action_util.h One shot support for swap hands (#8590) 5 years ago
bootloader.h
bootmagic.c Initialize Layer State on startup (#8318) 5 years ago
bootmagic.h
bootmagic_lite.c
command.c Remove `DESCRIPTION` (#9732) 5 years ago
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) 5 years ago
keyboard.h
keycode.h Add *OPT aliases for *ALT keycodes and macros (#8714) 5 years ago
led.h
magic.c Initialize Layer State on startup (#8318) 5 years ago
magic.h
matrix.h
mousekey.c Fix the mousekey scrolling (#9174) 5 years ago
mousekey.h
nodebug.h
print.c
print.h 2020 May 30 Breaking Changes Update (#9215) 5 years ago
progmem.h Fix `pgm_read_ptr()` define for ARM (#8658) 5 years ago
raw_hid.h
report.c
report.h Hid joystick interface (#4226) 5 years ago
sendchar.h
sendchar_null.c Initial vusb console support (#8559) 5 years ago
sendchar_uart.c
sleep_led.h
suspend.h
timer.h format code according to conventions [skip ci] 5 years ago
uart.c adds support for the atmega328 (#9043) 5 years ago
uart.h
util.c Strip out features to allow minimum firmware sizes (#8645) 5 years ago
util.h
virtser.h
wait.h