Make UsbProtocolHandler() invoke UsbCommand_SetI2cBaudRate() when requested.

This commit is contained in:
László Monda
2018-01-13 19:54:48 +01:00
parent 0fd95b71b2
commit 72d8e49717

View File

@@ -15,6 +15,7 @@
#include "usb_commands/usb_command_jump_to_module_bootloader.h"
#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"
void UsbProtocolHandler(void)
{
@@ -69,6 +70,9 @@ void UsbProtocolHandler(void)
case UsbCommandId_GetSlaveI2cErrors:
UsbCommand_GetSlaveI2cErrors();
break;
case UsbCommandId_SetI2cBaudRate:
UsbCommand_SetI2cBaudRate();
break;
default:
SetUsbTxBufferUint8(0, UsbStatusCode_InvalidCommand);
break;