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 register value handling in helpers and sensors
- Introduced `pack_value` and `unpack_value` functions for packing and unpacking register values, enhancing register format handling. - Updated `NumberRWSensor` to utilize `pack_value` for 16-bit and 32-bit register packing. - Refactored `reg_to_value` method in `Sensor` class to use `unpack_value` for improved register value extraction. - Removed deprecated functions `make_32bit`, `split_to_16bit`, and `signed` from helpers to streamline code.
- Loading branch information
1 parent
fd0ab54
commit f46e4cb
Showing
3 changed files
with
62 additions
and
52 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
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