summaryrefslogtreecommitdiff
path: root/quantum/command.c
AgeCommit message (Collapse)Author
2023-10-27V-USB: Fix `GET_IDLE/SET_IDLE` (#22332)Ryan
Co-authored-by: Sergey Vlasov <sigprof@gmail.com>
2023-03-03Remove some use of keymap.h (#20006)Joel Challis
2022-07-07[Fix] Patches after printf library update (#17584)Stefan Kerkmann
* Add missing '(' to print_bin_reverse32 declaration * Fix insufficient character buffers on satisfaction75 * Remove \0 character in format string and use corrected offset math instead on rocketboard 16 * Replace snprintf_ with snprintf for djinn * Explicitly ignore format checks for tracktyl manuform that uses %b specifier * Print properly escaped version string in command.c, as PRODUCT or other defines can contain constructs like 'Vendor keyboard 66%' which will be interpreted as a format specifier
2022-07-02PoC: Swap Escape and Caps (#16336)Osamu Aoki
2022-02-12Format code according to conventions (#16322)QMK Bot
2021-10-05[Bug] Fix command feature if mousekey is enabled and using 3-speed setting ↵Drashna Jaelre
(#14697)
2021-08-07Refactor `quantum/command.{c,h}` for code size & {read,maintain}ability (#11842)Liyang HU
* quantum/command.c: coalesce `print()`s in `command_common_help()` & `print_version()` Also undo some damage by clang-format in b624f32f94 * quantum/command.c: replace `print(…); print_{,val_}{dec,hex}*(…);` sequences with single `xprintf(…)` `print_{dec,hex}*(…)` are just `#define`s for `xprintf(…)` anyway. Each additional `xprintf(…)` costs ~8 bytes: the call instructions, plus an additional NUL terminator. This _really_ adds up: this commit saves 814 bytes on my ATmega32. * quantum/command.c: optimise `mousekey_console()` for size & legibility Made various tweaks to the interface, but still functionally identical. Assume `KC_1`…`KC_0` to be contiguous, and removed `numkey2num(…)` entirely. It was exported in `command.h` by 1a0bac8bcc for no obvious reason, before which it was `static`. I doubt anyone uses it. `mousekey_console()` is now enabled regardless of `MK_3_SPEED`. Needs fleshing out for things other than the X11 variant though. This commit saves 638 bytes on my ATmega32.
2021-07-03Improve layer mask handling (#13065)Drashna Jaelre
2021-02-07Merge remote-tracking branch 'origin/master' into developQMK Bot
2021-02-07Migrate some tmk_core files to quantum (#11791)Joel Challis
* Migrate some tmk_core files to quantum * Fix build errors