Skip to content

Commit 33bd746

Browse files
committed
fix the feature error code issue.
bug: v/84018 rootcause: A compilation issue occurred when the framework group patch was not synchronized. Signed-off-by: wuxiaodong6 <wuxiaodong6@xiaomi.com>
1 parent ef7c892 commit 33bd746

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ endchoice
8181

8282
endif #BLUETOOTH_FRAMEWORK
8383

84+
config FEATURE_ERROR_CODE_CONVERT
85+
bool "FEATURE error code conversion"
86+
default n
87+
8488
menu "Core"
8589
config BLUETOOTH_BREDR_SUPPORT
8690
bool "Bluetooth BREDR"

feature/feature_async/src/feature_bluetooth_util.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ bt_instance_t* feature_bluetooth_get_bt_ins(FeatureInstanceHandle feature)
149149

150150
FeatureErrorCode bt_status_to_feature_error(uint8_t status)
151151
{
152+
#ifndef FEATURE_ERROR_CODE_CONVERT
153+
return FT_ERR_GENERAL;
154+
#else
152155
switch (status) {
153156
case BT_STATUS_FAIL:
154157
return FT_ERR_GENERAL;

0 commit comments

Comments
 (0)