You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I confirm that this is an issue rather than a question.
Bug report
When using a tpm2net led device the total number of packets is incorrectly calculated when Max packet is chosen such that all packets are equal size (i.e. the last packet size is equal to the Max packet size).
The root of the error lies in line 26 of LedDeviceTpm2net.cpp. It should round up to the nearest integer instead of rounding down (casting to int) and adding 1.
If needed, I can generate a pull request to fix this bug.
Steps to reproduce
For example: set Hardware LED count to 600 leds, and Max packet 900
What is expected?
600 leds * 3 bytes = 1800 bytes of data
1800 / 900 = 2 packets in total
Two packets being sent, packet header describing a total of 2 packets.
What is actually happening?
Two packets are actually sent, but the packet header is stating a total of 3 packets. This causes the receiver to expect a third packet, which never arrives. Hence the receiver is not processing the data.
System
Hyperion Server:
Build: (HEAD detached at 83338dc) (Paulchen Panther-ca50487e/83338dc3-1605733041)
Bug report
When using a tpm2net led device the total number of packets is incorrectly calculated when
Max packet
is chosen such that all packets are equal size (i.e. the last packet size is equal to theMax packet
size).The root of the error lies in line 26 of LedDeviceTpm2net.cpp. It should round up to the nearest integer instead of rounding down (casting to int) and adding 1.
If needed, I can generate a pull request to fix this bug.
Steps to reproduce
For example: set
Hardware LED count
to 600 leds, andMax packet
900What is expected?
600 leds * 3 bytes = 1800 bytes of data
1800 / 900 = 2 packets in total
Two packets being sent, packet header describing a total of 2 packets.
What is actually happening?
Two packets are actually sent, but the packet header is stating a total of 3 packets. This causes the receiver to expect a third packet, which never arrives. Hence the receiver is not processing the data.
System
Hyperion Server:
Hyperion Server OS:
The text was updated successfully, but these errors were encountered: