forked from kellerza/sunsynk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor
pack_value
function and enhance bitmask handling
- Updated `pack_value` to return `RegType` instead of a tuple, improving type clarity. - Removed deprecated `patch_bitmask` function and reintroduced it with improved implementation. - Simplified `NumberRWSensor` to utilize `pack_value` for dynamic register packing based on address length. - Enhanced code readability and maintainability by consolidating bitmask operations.
- Loading branch information
1 parent
f46e4cb
commit 45daf5c
Showing
2 changed files
with
8 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters