diff options
| author | Ilya Zhuravlev <whatever@xyz.is> | 2023-03-18 17:51:58 -0600 |
|---|---|---|
| committer | Ilya Zhuravlev <whatever@xyz.is> | 2023-03-18 17:51:58 -0600 |
| commit | 06a2fdcc9c286a04cd09ea6f358655d65e876ca1 (patch) | |
| tree | 4071d7fa12d3d1006b3c112be0eccf6e83f0d369 /quantum/dynamic_keymap.h | |
| parent | 1a0527b66e191eece367bf73eacd393d83b859fc (diff) | |
| parent | a5e7390419a23c6db9cb62810f8ff1645d20b6a3 (diff) | |
Merge remote-tracking branch 'qmk/master' into merge-2023-03-12
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 98aecd2842..82fca78eae 100644 --- a/quantum/dynamic_keymap.h +++ b/quantum/dynamic_keymap.h @@ -82,6 +82,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); |
