Introduce a new way of activating the test mode
This commit is contained in:
@@ -1,13 +1,18 @@
|
||||
#include "usb_protocol_handler.h"
|
||||
#include "usb_commands/usb_command_set_variable.h"
|
||||
#include "key_matrix.h"
|
||||
#include "test_mode.h"
|
||||
|
||||
void UsbCommand_SetVariable(void)
|
||||
{
|
||||
usb_variable_id_t variableId = GetUsbRxBufferUint8(1);
|
||||
|
||||
switch (variableId) {
|
||||
case UsbVariable_TestMode:
|
||||
case UsbVariable_TestModeActive:
|
||||
if (GetUsbRxBufferUint8(2)) {
|
||||
TestModeActive = true;
|
||||
TestMode_Activate();
|
||||
}
|
||||
break;
|
||||
case UsbVariable_TestUsbStack:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user