Temporarily allow the USB stack test to be activated through USB

This commit is contained in:
Eric Tang
2018-07-20 17:23:44 -07:00
parent 8c50192d6c
commit a2866feb77
4 changed files with 9 additions and 5 deletions
@@ -2,6 +2,7 @@
#include "usb_commands/usb_command_get_variable.h"
#include "key_matrix.h"
#include "test_mode.h"
#include "usb_report_updater.h"
void UsbCommand_GetVariable(void)
{
@@ -12,6 +13,7 @@ void UsbCommand_GetVariable(void)
SetUsbTxBufferUint8(1, TestModeActive);
break;
case UsbVariable_TestUsbStack:
SetUsbTxBufferUint8(1, TestUsbStack);
break;
case UsbVariable_DebounceTimePress:
SetUsbTxBufferUint8(1, DebounceTimePress);
@@ -2,6 +2,7 @@
#include "usb_commands/usb_command_set_variable.h"
#include "key_matrix.h"
#include "test_mode.h"
#include "usb_report_updater.h"
void UsbCommand_SetVariable(void)
{
@@ -15,6 +16,7 @@ void UsbCommand_SetVariable(void)
}
break;
case UsbVariable_TestUsbStack:
TestUsbStack = GetUsbRxBufferUint8(2);
break;
case UsbVariable_DebounceTimePress:
DebounceTimePress = GetUsbRxBufferUint8(2);