From 7d49e47b6aa94df3695fcff2244eef89009538c5 Mon Sep 17 00:00:00 2001 From: "LAPTOP-FELIX\\Felix" <-> Date: Fri, 19 Apr 2024 23:51:17 +0200 Subject: [PATCH] fixed program transmit protection for overlong programs --- GlowSequencer/Usb/CommunicationUtility.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GlowSequencer/Usb/CommunicationUtility.cs b/GlowSequencer/Usb/CommunicationUtility.cs index 10b7335..29eead9 100644 --- a/GlowSequencer/Usb/CommunicationUtility.cs +++ b/GlowSequencer/Usb/CommunicationUtility.cs @@ -28,7 +28,7 @@ public ushort Address } set { - if(command == 0x02 && value < 16384) + if(command is 0x03 or 0x02 && value < 16384) { throw new ArgumentOutOfRangeException("Address must be greater than 0x0040 (16384) for command 0x02"); }