Skip to content

Conversation

@DenSinH
Copy link
Contributor

@DenSinH DenSinH commented Jul 25, 2025

This error message is logged if we poll an unsigned byte array for image data, while the image is processed like normal.

Copy link
Collaborator

@kasemir kasemir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need the same for ArrayShort/ArrayUShort, ArrayInteger/ArrayUInteger?

@kasemir kasemir merged commit a1dda73 into ControlSystemStudio:master Jul 29, 2025
2 checks passed
@kasemir
Copy link
Collaborator

kasemir commented Jul 29, 2025

I think the statements just above your update need to change from

if (numbers instanceof ArrayShort)
...
if (numbers instanceof ArrayInteger)

to

if (numbers instanceof ArrayShort   ||  numbers instanceof ArrayUShort)
...
if (numbers instanceof ArrayInteger ||  numbers instanceof ArrayUInteger )

to handle those data types the same you fixed Byte/UByte. But I don't have a test case ready to confirm we'd exercise those. Certainly hasn't been an operational problem here so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants