Clear the report at the end of a text macro

This commit is contained in:
Eric Tang
2018-06-26 15:14:21 -07:00
parent 76a91c010b
commit d35a7cc644

View File

@@ -340,6 +340,7 @@ bool processTextAction(void)
if (textIndex == currentMacroAction.text.textLen) {
textIndex = 0;
reportIndex = USB_BASIC_KEYBOARD_MAX_KEYS;
memset(&MacroBasicKeyboardReport, 0, sizeof MacroBasicKeyboardReport);
return false;
}
if (reportIndex == USB_BASIC_KEYBOARD_MAX_KEYS) {