From 40bcddf5699838238d0213369f93e730037ffd6e Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 26 Jul 2022 20:23:59 +1000 Subject: [PATCH] Adding the Gigabyte Z370 AORUS Ultra Gaming-CF to resolve #2623 --- .../GigabyteRGBFusion2SMBusControllerDetect.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Controllers/GigabyteRGBFusion2SMBusController/GigabyteRGBFusion2SMBusControllerDetect.cpp b/Controllers/GigabyteRGBFusion2SMBusController/GigabyteRGBFusion2SMBusControllerDetect.cpp index 9cdeb827..2d5535b8 100644 --- a/Controllers/GigabyteRGBFusion2SMBusController/GigabyteRGBFusion2SMBusControllerDetect.cpp +++ b/Controllers/GigabyteRGBFusion2SMBusController/GigabyteRGBFusion2SMBusControllerDetect.cpp @@ -44,6 +44,7 @@ json rgb_fusion_2_smbus_motherboards[] = "X470 AORUS ULTRA GAMING", "X470 AORUS ULTRA GAMING-CF", "Z370 AORUS Gaming 5-CF" + "Z370 AORUS Ultra Gaming-CF" }; /******************************************************************************************\ @@ -60,12 +61,12 @@ bool TestForGigabyteRGBFusion2SMBusController(i2c_smbus_interface* bus, unsigned bool pass = false; int res = bus->i2c_smbus_write_quick(address, I2C_SMBUS_WRITE); - + if (res >= 0) { pass = true; } - + return(pass); } /* TestForRGBFusion2SMBusController() */ @@ -93,7 +94,7 @@ void DetectGigabyteRGBFusion2SMBusControllers(std::vector& | Get Linux LED settings from settings manager | \*-------------------------------------------------*/ device_settings = set_man->GetSettings(DETECTOR_NAME); - + if(!device_settings.contains("SupportedDevices")) { //If supported devices is not found then write it to settings