-
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.
The issue came up on the Max17261, where the addressing is non-contiguous. In v0.4.0, accessing the registers by address caused a buffer overflow because the address was larger than the indexable register map. The solution is an array of addresses.
- Loading branch information
Showing
2 changed files
with
47 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ pub fn main() { | |
|
||
peripheral!( | ||
Max17261, | ||
0x0A, | ||
0x36, | ||
112, | ||
[ | ||
// 0x00 to 0x10 | ||
|
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