File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed
lib/sdk11/components/libraries/bootloader_dfu Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -736,8 +736,8 @@ static void on_ble_evt(ble_evt_t * p_ble_evt)
736736 ble_gatts_rw_authorize_reply_params_t auth_reply ;
737737
738738#ifdef CFG_DEBUG
739- extern const char * dbg_ble_event_str (uint16_t evt_id );
740- PRINTF ( "BLE %s\r\n" , dbg_ble_event_str ( p_ble_evt -> header .evt_id ) );
739+ extern void print_ble_event (uint16_t evt_id );
740+ print_ble_event ( p_ble_evt -> header .evt_id );
741741#endif
742742
743743 switch (p_ble_evt -> header .evt_id )
@@ -1085,6 +1085,7 @@ uint32_t dfu_transport_ble_close()
10851085
10861086#ifdef CFG_DEBUG
10871087
1088+ #if 0
10881089typedef struct
10891090{
10901091 uint32_t key ;
@@ -1173,18 +1174,22 @@ lookup_table_t const _strevt_table =
11731174 .items = _strevt_lookup
11741175};
11751176
1176- const char * dbg_ble_event_str (uint16_t evt_id )
1177- {
1178- const char * str = (const char * ) lookup_find (& _strevt_table , evt_id );
1179- static char unknown_str [7 ] = {0 };
1177+ #endif
11801178
1179+ void print_ble_event (uint16_t evt_id )
1180+ {
1181+ // const char * str = (const char *) lookup_find(&_strevt_table, evt_id);
1182+ const char * str = NULL ;
1183+ PRINTF ("BLE event: " );
11811184 if ( str == NULL )
11821185 {
1183- sprintf (unknown_str , "0x%04X" , evt_id );
1184- str = unknown_str ;
1186+ PRINTF ("0x%04X" , evt_id );
1187+ }else
1188+ {
1189+ PRINTF (str );
11851190 }
1186-
1187- return str ;
1191+ PRINTF ("\r\n" );
11881192}
11891193
1194+
11901195#endif
You can’t perform that action at this time.
0 commit comments