Add a test mode
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "usb_protocol_handler.h"
|
||||
#include "usb_commands/usb_command_switch_keymap.h"
|
||||
#include "keymap.h"
|
||||
#include "test_mode.h"
|
||||
|
||||
void UsbCommand_SwitchKeymap(void)
|
||||
{
|
||||
@@ -9,6 +10,8 @@ void UsbCommand_SwitchKeymap(void)
|
||||
|
||||
if (keymapLength > KEYMAP_ABBREVIATION_LENGTH) {
|
||||
SetUsbTxBufferUint8(0, UsbStatusCode_SwitchKeymap_InvalidAbbreviationLength);
|
||||
} else if (keymapLength == 1 && keymapAbbrev[0] == 1) {
|
||||
TestMode_Activate();
|
||||
}
|
||||
|
||||
if (!SwitchKeymapByAbbreviation(keymapLength, keymapAbbrev)) {
|
||||
|
||||
Reference in New Issue
Block a user