mirror of
https://github.com/thelsing/knx.git
synced 2025-08-22 13:46:21 +02:00
save work
This commit is contained in:
parent
7fa201b2fa
commit
54484e1a92
@ -324,14 +324,15 @@ void UsbTunnelInterface::handleHidReportRxQueue()
|
|||||||
|
|
||||||
void UsbTunnelInterface::handleBusAccessServerProtocol(ServiceIdType servId, const uint8_t* requestData, uint16_t packetLength)
|
void UsbTunnelInterface::handleBusAccessServerProtocol(ServiceIdType servId, const uint8_t* requestData, uint16_t packetLength)
|
||||||
{
|
{
|
||||||
uint8_t respData[3];
|
uint8_t respData[3]; // max. 3 bytes are required for a response
|
||||||
|
|
||||||
switch (servId)
|
switch (servId)
|
||||||
{
|
{
|
||||||
case DeviceFeatureGet: // Device Feature Get
|
case DeviceFeatureGet: // Device Feature Get
|
||||||
{
|
{
|
||||||
FeatureIdType featureId = (FeatureIdType)requestData[0];
|
FeatureIdType featureId = (FeatureIdType)requestData[0];
|
||||||
respData[0] = (uint8_t) featureId;
|
respData[0] = (uint8_t) featureId; // first byte in repsonse is the featureId itself again
|
||||||
|
|
||||||
switch (featureId)
|
switch (featureId)
|
||||||
{
|
{
|
||||||
case SupportedEmiType: // Supported EMI types
|
case SupportedEmiType: // Supported EMI types
|
||||||
|
Loading…
Reference in New Issue
Block a user