Move system property enum to system_properties.h

This commit is contained in:
László Monda
2017-07-23 20:14:29 +02:00
parent 057f048d1b
commit c5abbdcd54
3 changed files with 13 additions and 11 deletions

View File

@@ -36,16 +36,16 @@ void getSystemProperty(void) {
uint8_t propertyId = GenericHidInBuffer[1];
switch (propertyId) {
case SystemProperty_UsbProtocolVersionId:
case SystemPropertyId_UsbProtocolVersion:
SetResponseByte(SYSTEM_PROPERTY_USB_PROTOCOL_VERSION);
break;
case SystemProperty_BridgeProtocolVersionId:
case SystemPropertyId_BridgeProtocolVersion:
SetResponseByte(SYSTEM_PROPERTY_BRIDGE_PROTOCOL_VERSION);
break;
case SystemProperty_DataModelVersionId:
case SystemPropertyId_DataModelVersion:
SetResponseByte(SYSTEM_PROPERTY_DATA_MODEL_VERSION);
break;
case SystemProperty_FirmwareVersionId:
case SystemPropertyId_FirmwareVersion:
SetResponseByte(SYSTEM_PROPERTY_FIRMWARE_VERSION);
break;
default: