diff options
author | Wilba <[email protected]> | 2022-11-10 07:46:44 +1100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-11-10 07:46:44 +1100 |
commit | bc6f8dc8b0822e5e03893eacffa42a7badb4c2fa (patch) | |
tree | b1e8a219803f30b7347e479734a5c6e7352a5f30 /quantum/dynamic_keymap.h | |
parent | 575b0e33fa47034f5cfaf6f7cd98570268efa0a2 (diff) | |
download | qmk_firmware-bc6f8dc8b0822e5e03893eacffa42a7badb4c2fa.tar.gz qmk_firmware-bc6f8dc8b0822e5e03893eacffa42a7badb4c2fa.zip |
VIA V3 - The Custom UI Update (#18222)
Diffstat (limited to 'quantum/dynamic_keymap.h')
-rw-r--r-- | quantum/dynamic_keymap.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/quantum/dynamic_keymap.h b/quantum/dynamic_keymap.h index 459b48d07a..806342efa3 100644 --- a/quantum/dynamic_keymap.h +++ b/quantum/dynamic_keymap.h @@ -54,6 +54,12 @@ void dynamic_keymap_set_buffer(uint16_t offset, uint16_t size, uint8_t *data); // strings, the last byte must be a null when at maximum capacity, // and it not being null means the buffer can be considered in an // invalid state. +// +// The buffer *may* contain less macro strings than the maximum. +// This allows a higher maximum number of macros without requiring that +// number of nulls to be in the buffer. +// Note: dynamic_keymap_macro_get_count() returns the maximum that *can* be +// stored, not the current count of macros in the buffer. uint8_t dynamic_keymap_macro_get_count(void); uint16_t dynamic_keymap_macro_get_buffer_size(void); |