Introduce a new way of activating the test mode

This commit is contained in:
Eric Tang
2018-07-20 17:11:02 -07:00
parent 63d82d92db
commit 8c50192d6c
6 changed files with 20 additions and 6 deletions

View File

@@ -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;