From c5cf738fd011bc67a31682302d0ce963eb0ba969 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Thu, 4 Oct 2018 19:23:38 +0200 Subject: [PATCH] Expose UsbReportUpdateSemaphore via UsbCommand_{Get,Set}Variable() --- right/src/usb_commands/usb_command_get_variable.c | 3 +++ right/src/usb_commands/usb_command_set_variable.c | 3 +++ right/src/usb_protocol_handler.h | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/right/src/usb_commands/usb_command_get_variable.c b/right/src/usb_commands/usb_command_get_variable.c index 68df5b8..17d15bf 100644 --- a/right/src/usb_commands/usb_command_get_variable.c +++ b/right/src/usb_commands/usb_command_get_variable.c @@ -21,5 +21,8 @@ void UsbCommand_GetVariable(void) case UsbVariable_DebounceTimeRelease: SetUsbTxBufferUint8(1, DebounceTimeRelease); break; + case UsbVariable_UsbReportSemaphore: + SetUsbTxBufferUint8(1, UsbReportUpdateSemaphore); + break; } } diff --git a/right/src/usb_commands/usb_command_set_variable.c b/right/src/usb_commands/usb_command_set_variable.c index ab31554..8910f41 100644 --- a/right/src/usb_commands/usb_command_set_variable.c +++ b/right/src/usb_commands/usb_command_set_variable.c @@ -24,5 +24,8 @@ void UsbCommand_SetVariable(void) case UsbVariable_DebounceTimeRelease: DebounceTimeRelease = GetUsbRxBufferUint8(2); break; + case UsbVariable_UsbReportSemaphore: + UsbReportUpdateSemaphore = GetUsbRxBufferUint8(2); + break; } } diff --git a/right/src/usb_protocol_handler.h b/right/src/usb_protocol_handler.h index 48cc983..17aa380 100644 --- a/right/src/usb_protocol_handler.h +++ b/right/src/usb_protocol_handler.h @@ -42,7 +42,8 @@ UsbVariable_TestSwitches, UsbVariable_TestUsbStack, UsbVariable_DebounceTimePress, - UsbVariable_DebounceTimeRelease + UsbVariable_DebounceTimeRelease, + UsbVariable_UsbReportSemaphore, } usb_variable_id_t; typedef enum {