Skip to content

Commit 0889a68

Browse files
committed
comment out ble event string due to lack of flash
1 parent 38a67d1 commit 0889a68

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

lib/sdk11/components/libraries/bootloader_dfu/dfu_transport_ble.c

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff 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
10881089
typedef 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

0 commit comments

Comments
 (0)