fork

Fork of nRF51822 by Nordic Semiconductor

Revision:
132:5f44d6c28625
Parent:
130:ec760bb91020
Child:
133:74079098b3c9
--- a/btle/btle.cpp	Fri May 08 15:33:55 2015 +0100
+++ b/btle/btle.cpp	Fri May 08 15:33:55 2015 +0100
@@ -148,36 +148,6 @@
 ret_code_t
 dm_handler(dm_handle_t const *p_handle, dm_event_t const *p_event, ret_code_t event_result)
 {
-    printf("dm_handler: event %u\r\n", p_event->event_id);
-
-#if 0
-    /**
-     * @brief Event parameters.
-     *
-     * @details Defines event parameters for each of the events notified by the module.
-     */
-    typedef union
-    {
-        ble_gap_evt_t            * p_gap_param;       /**< All events that are triggered in device manager as a result of GAP events, like connection, disconnection and security procedures are accompanied with GAP parameters. */
-        dm_application_context_t * p_app_context;     /**< All events that are associated with application context procedures of store, load, and deletion have this as event parameter. */
-        dm_service_context_t     * p_service_context; /**< All events that are associated with service context procedures of store, load and deletion have this as event parameter. */
-        dm_device_context_t      * p_device_context;  /**< All events that are associated with device context procedures of store, load and deletion have this as event parameter. */
-    } dm_event_param_t;
-
-    /**
-     * @brief Asynchronous events details notified to the application by the module.
-     *
-     * @details Defines event type along with event parameters notified to the application by the
-     *          module.
-     */
-    typedef struct
-    {
-        uint8_t          event_id;       /**< Identifies the event. See \ref dm_events for details on event types and their significance. */
-        dm_event_param_t event_param;    /**< Event parameters. Can be NULL if the event does not have any parameters. */
-        uint16_t         event_paramlen; /**< Length of the event parameters, is zero if the event does not have any parameters. */
-    } dm_event_t;
-#endif
-
     switch (p_event->event_id) {
         case DM_EVT_SECURITY_SETUP: /* started */
             nRF51Gap::getInstance().processSecuritySetupStartedEvent(p_event->event_param.p_gap_param->conn_handle);