Closed MickMack1983 closed 5 years ago
What code or stream settings are you using to get "struct.error: pack expected 192 items for packing (got 256)", what LabJack are you using, and what operating system are you using?
@MickMack1983, for me to look into this further and consider merging your commit, please provide the details I requested in my previous comment. I want to reproduce the issue you were seeing, and check on what is causing the smaller packet sizes than requested and if data is lost.
Not accepting the pull request and closing.
I agree with the decision to not merge a pull request unless we understand it. However, I hope that @MickMack1983 can add the reproduce instructions here eventually so we can revisit it. If this bug occurred during normal usage, learning more about it might result in other changes as well. For example, it might lead to better validation of streaming settings, a change to ExoDriver, better docs, etc.
When readBytes is less than len(*newA) pack fails with " struct.error: pack expected 192 items for packing (got 256)"
This pull requests solves that