Skip to content

Force 32-bit integer for data stream that expects it#439

Open
ivalaginja wants to merge 1 commit intodevelopfrom
force_int_type_in_picomotor
Open

Force 32-bit integer for data stream that expects it#439
ivalaginja wants to merge 1 commit intodevelopfrom
force_int_type_in_picomotor

Conversation

@ivalaginja
Copy link
Copy Markdown
Collaborator

Bug found while working on capsule.

Python's int() function returns a 64-bit integer on the capsule Linux machine, which trips up the service when it gets fed into a data stream that expects a 32-bit integer. This forces it to 32-bit upon submission into said data stream.

Tested on hardware and works.

@ivalaginja ivalaginja requested a review from RemiSoummer May 7, 2026 09:32
@ivalaginja ivalaginja self-assigned this May 7, 2026
@ivalaginja ivalaginja added the bugfix Fixing of a bug label May 7, 2026
@ivalaginja
Copy link
Copy Markdown
Collaborator Author

@ehpor thinking about it, does it make a difference if I force the data stream to be created for 64-bit integers, or if I force all integers on that data stream to be 32-bit? Any general thoughts that would motivate one or the other?

@ivalaginja ivalaginja requested a review from ehpor May 7, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Fixing of a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant