-
Notifications
You must be signed in to change notification settings - Fork 32
fix the feature error code issue. #326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -81,6 +81,10 @@ endchoice | |||||||
|
|
||||||||
| endif #BLUETOOTH_FRAMEWORK | ||||||||
|
|
||||||||
| config FEATURE_ERROR_CODE_CONVERT | ||||||||
| bool "FEATURE error code conversion" | ||||||||
| default n | ||||||||
|
||||||||
| default n | |
| default n | |
| depends on BLUETOOTH_FEATURE_ASYNC |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -149,6 +149,9 @@ bt_instance_t* feature_bluetooth_get_bt_ins(FeatureInstanceHandle feature) | |||||||
|
|
||||||||
| FeatureErrorCode bt_status_to_feature_error(uint8_t status) | ||||||||
| { | ||||||||
| #ifdef FEATURE_ERROR_CODE_CONVERT | ||||||||
| return FT_ERR_GENERAL; | ||||||||
| #else | ||||||||
|
Comment on lines
+152
to
+154
|
||||||||
| #ifdef FEATURE_ERROR_CODE_CONVERT | |
| return FT_ERR_GENERAL; | |
| #else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The FEATURE_ERROR_CODE_CONVERT configuration option is missing a help text. Kconfig options should include help text to explain their purpose, when to enable them, and any implications of enabling/disabling the option. This is especially important given that this appears to be a workaround for a framework synchronization issue.