Expose UsbReportUpdateSemaphore via UsbCommand_{Get,Set}Variable()
This commit is contained in:
@@ -21,5 +21,8 @@ void UsbCommand_GetVariable(void)
|
|||||||
case UsbVariable_DebounceTimeRelease:
|
case UsbVariable_DebounceTimeRelease:
|
||||||
SetUsbTxBufferUint8(1, DebounceTimeRelease);
|
SetUsbTxBufferUint8(1, DebounceTimeRelease);
|
||||||
break;
|
break;
|
||||||
|
case UsbVariable_UsbReportSemaphore:
|
||||||
|
SetUsbTxBufferUint8(1, UsbReportUpdateSemaphore);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,5 +24,8 @@ void UsbCommand_SetVariable(void)
|
|||||||
case UsbVariable_DebounceTimeRelease:
|
case UsbVariable_DebounceTimeRelease:
|
||||||
DebounceTimeRelease = GetUsbRxBufferUint8(2);
|
DebounceTimeRelease = GetUsbRxBufferUint8(2);
|
||||||
break;
|
break;
|
||||||
|
case UsbVariable_UsbReportSemaphore:
|
||||||
|
UsbReportUpdateSemaphore = GetUsbRxBufferUint8(2);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,7 +42,8 @@
|
|||||||
UsbVariable_TestSwitches,
|
UsbVariable_TestSwitches,
|
||||||
UsbVariable_TestUsbStack,
|
UsbVariable_TestUsbStack,
|
||||||
UsbVariable_DebounceTimePress,
|
UsbVariable_DebounceTimePress,
|
||||||
UsbVariable_DebounceTimeRelease
|
UsbVariable_DebounceTimeRelease,
|
||||||
|
UsbVariable_UsbReportSemaphore,
|
||||||
} usb_variable_id_t;
|
} usb_variable_id_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
|||||||
Reference in New Issue
Block a user