Fixed incorrect comparison in the descriptor callback routine of the TeensyHID bootlo...
[pub/USBasp.git] / Demos / Host / Incomplete / BluetoothHost / Lib / ServiceDiscoveryProtocol.h
index 26b3c10..fc0abae 100644 (file)
@@ -43,7 +43,7 @@
                #include "BluetoothStack.h"\r
                \r
        /* Macros: */\r
                #include "BluetoothStack.h"\r
                \r
        /* Macros: */\r
-               #define BT_SDP_DEBUG(l, s, ...)                 do { if (SDP_DEBUG_LEVEL >= l) printf_P(PSTR("(SDP) " s "\r\n"), __VA_ARGS__); } while (0)\r
+               #define BT_SDP_DEBUG(l, s, ...)                 do { if (SDP_DEBUG_LEVEL >= l) printf_P(PSTR("(SDP) " s "\r\n"), ##__VA_ARGS__); } while (0)\r
                #define SDP_DEBUG_LEVEL                         2\r
                \r
                #define SDP_PDU_ERRORRESPONSE                   0x01\r
                #define SDP_DEBUG_LEVEL                         2\r
                \r
                #define SDP_PDU_ERRORRESPONSE                   0x01\r
@@ -78,7 +78,8 @@
                                                                {.Header = (type | 5), .Size = size, .Data = __VA_ARGS__}\r
                #define SERVICE_ATTRIBUTE_32BIT_LEN(name, type, size, ...) const ServiceAttributeData32Bit_t name PROGMEM = \\r
                                                                {.Header = (type | 5), .Size = size, .Data = __VA_ARGS__}\r
                                                                {.Header = (type | 5), .Size = size, .Data = __VA_ARGS__}\r
                #define SERVICE_ATTRIBUTE_32BIT_LEN(name, type, size, ...) const ServiceAttributeData32Bit_t name PROGMEM = \\r
                                                                {.Header = (type | 5), .Size = size, .Data = __VA_ARGS__}\r
-               \r
+               #define SERVICE_ATTRIBUTE_TABLE_TERMINATOR      {.AttributeData = NULL}\r
+\r
        /* Type Defines: */\r
                typedef struct\r
                {\r
        /* Type Defines: */\r
                typedef struct\r
                {\r