* move libffi to base/ Category
[t2sde.git] / package / contrib / openrgb / corsair-pro-ddr5.patch
blob8de8dd07e5a03b0341ee8e75998714f3bcf7cf3f
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/openrgb/hotfix-corsairpro-ddr5.patch
3 # Copyright (C) 2023 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- OpenRGB-release_0.8/Controllers/CorsairVengeanceProController/CorsairVengeanceProControllerDetect.cpp.vanilla 2023-05-11 17:19:44.275623940 +0200
15 +++ OpenRGB-release_0.8/Controllers/CorsairVengeanceProController/CorsairVengeanceProControllerDetect.cpp 2023-05-11 17:39:40.981710348 +0200
16 @@ -33,7 +33,7 @@
18 res = bus->i2c_smbus_read_byte_data(address, 0x43);
20 - if (res != 0x1C)
21 + if (res != 0x1B && res != 0x1C)
23 pass = false;
24 LOG_DEBUG("[%s] Failed: was expecting 0x1C got %02X", CORSAIR_VENGEANCE_RGB_PRO_NAME, res);
25 @@ -81,6 +81,16 @@
27 if(TestForCorsairVengeanceProController(busses[bus], addr))
29 + CorsairVengeanceProController* new_controller = new CorsairVengeanceProController(busses[bus], addr);
30 + RGBController_CorsairVengeancePro* new_rgbcontroller = new RGBController_CorsairVengeancePro(new_controller);
32 + ResourceManager::get()->RegisterRGBController(new_rgbcontroller);
33 + }
34 + }
35 + for(unsigned char addr = 0x18; addr <= 0x1F; addr++)
36 + {
37 + if(TestForCorsairVengeanceProController(busses[bus], addr))
38 + {
39 CorsairVengeanceProController* new_controller = new CorsairVengeanceProController(busses[bus], addr);
40 RGBController_CorsairVengeancePro* new_rgbcontroller = new RGBController_CorsairVengeancePro(new_controller);