From 751da8891fe2e078b6c3ffba9837a1c44a95ae87 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 20 Nov 2017 15:28:37 +0100 Subject: [PATCH] le_device_db_tlv: scan tlv after configuration (instead of init) --- src/ble/le_device_db_tlv.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/ble/le_device_db_tlv.c b/src/ble/le_device_db_tlv.c index b68dca5a0..278ef853d 100644 --- a/src/ble/le_device_db_tlv.c +++ b/src/ble/le_device_db_tlv.c @@ -140,21 +140,24 @@ static int le_device_db_tlv_delete(int index){ return 1; } -void le_device_db_init(void){ +static void le_device_db_tlv_scan(void){ int i; - num_valid_entries = 0; - memset(entry_map, 0, sizeof(entry_map)); + num_valid_entries = 0; + memset(entry_map, 0, sizeof(entry_map)); for (i=0;i