OSDN Git Service

Place handling of BTA_DM_DISC_BLE_RES_EVT in BLE feature ifdef
authorMatthew Xie <mattx@google.com>
Fri, 16 Aug 2013 02:30:48 +0000 (19:30 -0700)
committerMatthew Xie <mattx@google.com>
Fri, 16 Aug 2013 02:30:48 +0000 (19:30 -0700)
Without this fix, bluetooth fail to compile for non-BLE platform

Change-Id: Ida10c54ab841e0a2bcaeb389a9813dd846db8200

btif/src/btif_dm.c

index 0a71eec..3609420 100644 (file)
@@ -1144,6 +1144,7 @@ static void btif_dm_search_services_evt(UINT16 event, char *p_param)
             /* fixme */
         break;
 
+#if (defined(BLE_INCLUDED) && (BLE_INCLUDED == TRUE))
         case BTA_DM_DISC_BLE_RES_EVT:
              BTIF_TRACE_DEBUG2("%s:, services 0x%x)", __FUNCTION__,
                                 p_data->disc_ble_res.service.uu.uuid16);
@@ -1182,6 +1183,7 @@ static void btif_dm_search_services_evt(UINT16 event, char *p_param)
 
             }
         break;
+#endif /* BLE_INCLUDED */
 
         default:
         {