X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/d03d6513d0d24cf63225c8d3dfa07675d9107f40..fc31973daffea3506051ce51a5f79383ce0867d6:/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c b/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c index 58f47a1eb..6dd3796f4 100644 --- a/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c +++ b/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c @@ -39,7 +39,7 @@ const ServiceAttributeTable_t SDP_Attribute_Table[] PROGMEM = {.AttributeID = SDP_ATTRIBUTE_NAME , .AttributeData = &SDP_Attribute_Name}, {.AttributeID = SDP_ATTRIBUTE_DESCRIPTION , .AttributeData = &SDP_Attribute_Description}, {.AttributeID = SDP_ATTRIBUTE_AVAILABILITY, .AttributeData = &SDP_Attribute_Availability}, - {.AttributeData = NULL} + SERVICE_ATTRIBUTE_TABLE_TERMINATOR }; SERVICE_ATTRIBUTE_TEXT(RFCOMM_Attribute_Name, "RFCOMM"); @@ -50,7 +50,7 @@ const ServiceAttributeTable_t RFCOMM_Attribute_Table[] PROGMEM = {.AttributeID = SDP_ATTRIBUTE_NAME , .AttributeData = &RFCOMM_Attribute_Name}, {.AttributeID = SDP_ATTRIBUTE_DESCRIPTION , .AttributeData = &RFCOMM_Attribute_Description}, {.AttributeID = SDP_ATTRIBUTE_AVAILABILITY, .AttributeData = &RFCOMM_Attribute_Availability}, - {.AttributeData = NULL} + SERVICE_ATTRIBUTE_TABLE_TERMINATOR }; const ServiceTable_t SDP_Services_Table[] = @@ -71,7 +71,7 @@ void ServiceDiscovery_ProcessPacket(void* Data, Bluetooth_Channel_t* Channel) SDP_PDUHeader_t* SDPHeader = (SDP_PDUHeader_t*)Data; SDPHeader->ParameterLength = SwapEndian_16(SDPHeader->ParameterLength); - BT_SDP_DEBUG(1, "SDP Packet Received", NULL); + BT_SDP_DEBUG(1, "SDP Packet Received"); BT_SDP_DEBUG(2, "-- PDU ID: 0x%02X", SDPHeader->PDU); BT_SDP_DEBUG(2, "-- Param Length: 0x%04X", SDPHeader->ParameterLength); @@ -91,19 +91,19 @@ void ServiceDiscovery_ProcessPacket(void* Data, Bluetooth_Channel_t* Channel) static void ServiceDiscovery_ProcessServiceSearch(SDP_PDUHeader_t* SDPHeader) { - BT_SDP_DEBUG(1, "<< Service Search", NULL); + BT_SDP_DEBUG(1, "<< Service Search"); } static void ServiceDiscovery_ProcessServiceAttribute(SDP_PDUHeader_t* SDPHeader) { - BT_SDP_DEBUG(1, "<< Service Attribute", NULL); + BT_SDP_DEBUG(1, "<< Service Attribute"); } static void ServiceDiscovery_ProcessServiceSearchAttribute(SDP_PDUHeader_t* SDPHeader) { void* CurrentParameter = ((void*)SDPHeader + sizeof(SDP_PDUHeader_t)); - BT_SDP_DEBUG(1, "<< Service Search Attribute", NULL); + BT_SDP_DEBUG(1, "<< Service Search Attribute"); uint8_t ElementHeaderSize;