fix dynamic_keymap_macro_send (#756)

This commit is contained in:
Danil Tolkachev 2024-07-21 09:34:22 +03:00 committed by GitHub
parent ff05273117
commit 8d79fb0817
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -494,8 +494,8 @@ void dynamic_keymap_macro_send(uint8_t id) {
// We already checked there was a null at the end of // We already checked there was a null at the end of
// the buffer, so this cannot go past the end // the buffer, so this cannot go past the end
while (1) { while (1) {
memset(data, 0, sizeof(data));
data[0] = eeprom_read_byte(p++); data[0] = eeprom_read_byte(p++);
data[1] = 0;
// Stop at the null terminator of this macro string // Stop at the null terminator of this macro string
if (data[0] == 0) { if (data[0] == 0) {
break; break;