-
Notifications
You must be signed in to change notification settings - Fork 40
fix(bluetooth): remove hci version attribute setting #597
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
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR modifies Bluetooth device info initialization by no longer setting the HCI Version attribute from hciconfig output, likely to avoid incorrect or obsolete version reporting while leaving all other attribute handling unchanged. Sequence diagram for updated Bluetooth info initialization without HCI VersionsequenceDiagram
participant DeviceBluetooth
participant HciconfigMap
DeviceBluetooth->>DeviceBluetooth: setInfoFromHciconfig(mapInfo)
activate DeviceBluetooth
DeviceBluetooth->>DeviceBluetooth: setAttribute(mapInfo, Name, m_Name, false)
DeviceBluetooth->>DeviceBluetooth: setAttribute(mapInfo, Alias, m_Alias)
DeviceBluetooth->>DeviceBluetooth: setAttribute(mapInfo, Manufacturer, m_Vendor)
DeviceBluetooth->>DeviceBluetooth: getOtherMapInfo(mapInfo)
deactivate DeviceBluetooth
Class diagram for DeviceBluetooth after removing HCI Version attribute settingclassDiagram
class DeviceBluetooth {
- QString m_Name
- QString m_Alias
- QString m_Vendor
- QString m_Version
+ void setInfoFromHciconfig(QMapQStringQString mapInfo)
- void setAttribute(QMapQStringQString mapInfo, QString key, QString attribute, bool overwrite)
- void getOtherMapInfo(QMapQStringQString mapInfo)
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey - I've left some high level feedback:
- If
m_Versionis no longer populated anywhere after removing this setter, consider removing the member or any dependent logic to avoid carrying dead state.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- If `m_Version` is no longer populated anywhere after removing this setter, consider removing the member or any dependent logic to avoid carrying dead state.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: add-uos, max-lvs The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
remove hci version attribute setting log: remove hci version attribute setting bug: https://pms.uniontech.com/bug-view-347359.html Change-Id: I10ee960525c16efa86869f13fbf24d4a06fcde81
eff3dbe to
6f02cb2
Compare
deepin pr auto review针对你提供的 1. 文件:
|
|
/forcemerge |
|
This pr force merged! (status: unstable) |
1d58066
into
linuxdeepin:develop/eagle

remove hci version attribute setting
log: remove hci version attribute setting
bug: https://pms.uniontech.com/bug-view-347359.html
Change-Id: I10ee960525c16efa86869f13fbf24d4a06fcde81
Summary by Sourcery
Bug Fixes: