Add switch keymap USB command.

This commit is contained in:
László Monda
2018-03-30 11:18:31 +02:00
parent 195f40949f
commit b34fb9daa3
6 changed files with 57 additions and 1 deletions

View File

@@ -16,6 +16,7 @@
#include "usb_commands/usb_command_send_kboot_command_to_module.h"
#include "usb_commands/usb_command_get_slave_i2c_errors.h"
#include "usb_commands/usb_command_set_i2c_baud_rate.h"
#include "usb_commands/usb_command_switch_keymap.h"
void UsbProtocolHandler(void)
{
@@ -73,6 +74,9 @@ void UsbProtocolHandler(void)
case UsbCommandId_SetI2cBaudRate:
UsbCommand_SetI2cBaudRate();
break;
case UsbCommandId_SwitchKeymap:
UsbCommand_SwitchKeymap();
break;
default:
SetUsbTxBufferUint8(0, UsbStatusCode_InvalidCommand);
break;