Bug in P4J 2.8.0 when using I2C.regRegister (int reg, byte[] buffer, int offset, int length) #467
Replies: 6 comments 3 replies
-
|
hello Were you using the pigpio or the linuxfs provider ? After I fix what is broken I will inspect the other provider but wanted to start where you hit the failure. Tom |
Beta Was this translation helpful? Give feedback.
-
|
Good point. Here are the relevant lines from when it starts. So it looks like it's using the LinuxFS provider, I just can't spot where it says that. One thing I didn't spot was the interface definition for the signature in the bug subject. I found one with byte[] register and tried that with a single byte array but still hit the same fault. Many thanks for your help with this! Jim. |
Beta Was this translation helpful? Give feedback.
-
|
Also. As i jump around between various providers I drop this code into my test cases. |
Beta Was this translation helpful? Give feedback.
-
|
Pull Request #468 has my fix. |
Beta Was this translation helpful? Give feedback.
-
|
@hackerjimbo are you on Java runtime 21 or higher? Because if we implement this fix into development, it will appear in the next V3 version which requires Java 21. |
Beta Was this translation helpful? Give feedback.
-
|
I'm using Java 11 and v2.0.8 because I'm running on a Pi 1. I could apply the patch to that version though. I also have the hack that allows it to run on the ARM v6 architecture. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In summary, it ignores the offset parameter and writes from the start. What additional information would you like?
Beta Was this translation helpful? Give feedback.
All reactions