Skip to content
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

Moved some bluetooth specific code from each implementation to a common place #56

Merged
merged 5 commits into from
Jul 16, 2024

Conversation

calledit
Copy link

The same code was duplicated making things harder to read. This patch removes the duplicated code.
It also fixes en issue that could occur when a Bluetooth BMS was configured to be used but no address was given.

Adding else: to stop errors from occurring

The old BLE bms implementations used ble_ as a prefix.
Not using that might cause the battery to not be detected as the same battery if someone upgrades dbus-serialbattery.
So best to just keep prefixing with "ble_"
@mr-manuel mr-manuel merged commit e083904 into mr-manuel:master Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants