summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/bte_logmsg.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/bte_logmsg.c b/main/bte_logmsg.c
index 52502ae..7035a57 100644
--- a/main/bte_logmsg.c
+++ b/main/bte_logmsg.c
@@ -311,6 +311,14 @@ BT_API UINT8 BTAPP_SetTraceLevel( UINT8 new_level )
return (appl_trace_level);
}
+BT_API UINT8 BTIF_SetTraceLevel( UINT8 new_level )
+{
+ if (new_level != 0xFF)
+ btif_trace_level = new_level;
+
+ return (btif_trace_level);
+}
+
BTU_API UINT8 BTU_SetTraceLevel( UINT8 new_level )
{
if (new_level != 0xFF)
@@ -471,6 +479,10 @@ tBTTRC_FUNC_MAP bttrc_set_level_map[] = {
{BTTRC_ID_BTA_ACC, BTTRC_ID_BTAPP, BTAPP_SetTraceLevel, BTL_GLOBAL_PROP_TRC_FLAG, DEFAULT_CONF_TRACE_LEVEL},
#endif
+#if (BT_TRACE_BTIF == TRUE)
+ {BTTRC_ID_BTA_ACC, BTTRC_ID_BTAPP, BTIF_SetTraceLevel, "TRC_BTIF", DEFAULT_CONF_TRACE_LEVEL},
+#endif
+
{0, 0, NULL, NULL, DEFAULT_CONF_TRACE_LEVEL}
};