Skip to content

Commit eb4675c

Browse files
committed
Prevent crash on 24/32 bit channels
1 parent e6129ca commit eb4675c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fixture.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,9 @@ def process_channels(self, dmx_mode_channels, channels):
986986
channel_function.dmx_to.get_value()
987987
)
988988
else:
989-
new_channel_function.dmx_to = channel_function.dmx_to.value
989+
new_channel_function.dmx_to = min(
990+
channel_function.dmx_to.value, 65535
991+
) # TODO: fix this properly, here we trim to 16bit, to prevent crash with 24/32bit channels
990992

991993
new_channel_function.physical_from = (
992994
channel_function.physical_from.value

0 commit comments

Comments
 (0)