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 format code according to conventions [skip ci] 5 years ago
avr adds support for the atmega328 (#9043) 5 years ago
chibios Re-fix the STM32 dual-bank bootloader stuff. (#9738) 5 years ago
test Add customisable EEPROM driver selection (#7274) 5 years ago
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 clang-format changes 6 years ago
action_macro.h clang-format changes 6 years ago
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 clang-format changes 6 years ago
bootmagic.c Initialize Layer State on startup (#8318) 5 years ago
bootmagic.h ARM split - Add bootmagic/magic keycodes for setting handedness (#6545) 6 years ago
bootmagic_lite.c format code according to conventions [skip ci] 5 years ago
command.c Remove `DESCRIPTION` (#9732) 5 years ago
command.h clang-format changes 6 years ago
debug.c clang-format changes 6 years ago
debug.h clang-format changes 6 years ago
eeconfig.c Add customisable EEPROM driver selection (#7274) 5 years ago
eeconfig.h VIA Configurator Refactor (#7268) 5 years ago
eeprom.h Add customisable EEPROM driver selection (#7274) 5 years ago
host.c Run clang-format manually to fix recently changed files 6 years ago
host.h New and improved lock LED callbacks (#7215) 6 years ago
host_driver.h clang-format changes 6 years ago
keyboard.c Hid joystick interface (#4226) 5 years ago
keyboard.h clang-format changes 6 years ago
keycode.h Add *OPT aliases for *ALT keycodes and macros (#8714) 5 years ago
led.h Run clang-format manually to fix recently changed files 6 years ago
magic.c Initialize Layer State on startup (#8318) 5 years ago
magic.h MAGIC functionality, AG swap in default layout 9 years ago
matrix.h Allow 30us matrix delay to be keyboard/user overridable (#8216) 5 years ago
mousekey.c Fix the mousekey scrolling (#9174) 5 years ago
mousekey.h Decouple mouse cursor and mouse wheel in accelerated mode (#6685) 5 years ago
nodebug.h clang-format changes 6 years ago
print.c clang-format changes 6 years ago
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 clang-format changes 6 years ago
report.c format code according to conventions [skip ci] 5 years ago
report.h Hid joystick interface (#4226) 5 years ago
sendchar.h clang-format changes 6 years ago
sendchar_null.c Initial vusb console support (#8559) 5 years ago
sendchar_uart.c clang-format changes 6 years ago
sleep_led.h clang-format changes 6 years ago
suspend.h clang-format changes 6 years ago
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 clang-format changes 6 years ago
util.c Strip out features to allow minimum firmware sizes (#8645) 5 years ago
util.h Wrap util.h functions in `extern "C"` (#6762) 6 years ago
virtser.h Added USB Virtual Serial support 9 years ago
wait.h Remove mbed files (#7605) 5 years ago