Implement DevicePropertyId_CurrentKbootCommand

This commit is contained in:
László Monda
2018-01-10 02:58:31 +01:00
parent fcd75b2af2
commit 4a4c471b9e
5 changed files with 10 additions and 5 deletions

View File

@@ -3,6 +3,7 @@
#include "usb_protocol_handler.h"
#include "eeprom.h"
#include "versions.h"
#include "slave_drivers/kboot_driver.h"
version_t deviceProtocolVersion = {
DEVICE_PROTOCOL_MAJOR_VERSION,
@@ -55,6 +56,9 @@ void UsbCommand_GetDeviceProperty(void)
case DevicePropertyId_ConfigSizes:
memcpy(GenericHidOutBuffer+1, (uint8_t*)&configSizes, sizeof(configSizes));
break;
case DevicePropertyId_CurrentKbootCommand:
GenericHidOutBuffer[1] = KbootDriverState.command;
break;
default:
SetUsbTxBufferUint8(0, UsbStatusCode_GetDeviceProperty_InvalidProperty);
break;