From 4296decd73a86e150551d5d920e07f5cea529907 Mon Sep 17 00:00:00 2001 From: Cyril RUSSO Date: Thu, 12 Dec 2024 15:24:39 +0100 Subject: [PATCH] Add support for StreamDeckXL v2 --- streamdeck.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/streamdeck.go b/streamdeck.go index 8618d54..1bc511b 100644 --- a/streamdeck.go +++ b/streamdeck.go @@ -31,6 +31,7 @@ const ( PID_STREAMDECK_MINI = 0x0063 PID_STREAMDECK_MINI_MK2 = 0x0090 PID_STREAMDECK_XL = 0x006c + PID_STREAMDECK_XL_V2 = 0x008f ) // Firmware command IDs. @@ -171,7 +172,7 @@ func Devices() ([]Device, error) { resetCommand: c_REV2_RESET, setBrightnessCommand: c_REV2_BRIGHTNESS, } - case d.VendorID == VID_ELGATO && d.ProductID == PID_STREAMDECK_XL: + case d.VendorID == VID_ELGATO && (d.ProductID == PID_STREAMDECK_XL || d.ProductID == PID_STREAMDECK_XL_V2): dev = Device{ ID: d.Path, Serial: d.Serial,