From fd7d956913045171e8bf16c6d8940feb3673e4fa Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Fri, 16 Aug 2019 18:45:31 -0500 Subject: [PATCH] Update detection for Corsair Vengeance Pro RGB --- OpenAuraSDK/OpenAuraSDK.cpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/OpenAuraSDK/OpenAuraSDK.cpp b/OpenAuraSDK/OpenAuraSDK.cpp index de712e2a..7767b78a 100644 --- a/OpenAuraSDK/OpenAuraSDK.cpp +++ b/OpenAuraSDK/OpenAuraSDK.cpp @@ -421,14 +421,18 @@ bool TestForCorsairProController(i2c_smbus_interface* bus, unsigned char address { pass = true; - for (int i = 0xA0; i < 0xB0; i++) - { - res = bus->i2c_smbus_read_byte_data(address, i); + res = bus->i2c_smbus_read_byte_data(address, 0x24); - if (res != 0x00) - { - pass = false; - } + if (res != 0x02) + { + pass = false; + } + + res = bus->i2c_smbus_read_byte_data(address, 0x25); + + if (res != 0x02) + { + pass = false; } res = bus->i2c_smbus_read_byte_data(address, 0x43);