From 1d90e892536a21904a1177f96b3349b418fe240b Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 22 Jun 2017 10:55:09 +0200 Subject: [PATCH] btstack_link_key_db_tlv: fix include, extract tag --- src/classic/btstack_link_key_db_tlv.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/classic/btstack_link_key_db_tlv.c b/src/classic/btstack_link_key_db_tlv.c index e1893506a..214762b70 100644 --- a/src/classic/btstack_link_key_db_tlv.c +++ b/src/classic/btstack_link_key_db_tlv.c @@ -38,7 +38,7 @@ #include #include -#include "btstack_link_key_db_tlv.h" +#include "classic/btstack_link_key_db_tlv.h" #include "btstack_debug.h" #include "btstack_util.h" @@ -64,8 +64,12 @@ typedef struct link_key_nvm { static btstack_link_key_db_tlv_h singleton; static btstack_link_key_db_tlv_h * self = &singleton; +static const char tag_0 = 'B'; +static const char tag_1 = 'T'; +static const char tag_2 = 'L'; + static uint32_t btstack_link_key_db_tag_for_index(uint8_t index){ - return ('B' << 24) | ('T' << 16) | ('L' << 8) | index; + return (tag_0 << 24) | (tag_1 << 16) | (tag_2 << 8) | index; } // Device info