Store name in PowerColorRedDevilGPUController to avoid setting it in detector

This commit is contained in:
Adam Honse 2025-08-14 19:24:58 -05:00
parent 2134323bf8
commit ce86faabfe
4 changed files with 156 additions and 152 deletions

View file

@ -14,10 +14,11 @@
using namespace std::chrono_literals;
RedDevilGPUController::RedDevilGPUController(i2c_smbus_interface* bus, red_devil_dev_id dev)
RedDevilGPUController::RedDevilGPUController(i2c_smbus_interface* bus, red_devil_dev_id dev, std::string dev_name)
{
this->bus = bus;
this->dev = dev;
this->bus = bus;
this->dev = dev;
this->name = dev_name;
if(bus->pci_device > AMD_NAVI10_DEV) // Only Navi 2 cards have this mode
{
@ -40,6 +41,11 @@ std::string RedDevilGPUController::GetDeviceLocation()
return("I2C:" + return_string);
}
std::string RedDevilGPUController::GetDeviceName()
{
return(name);
}
void RedDevilGPUController::SetLEDColor(int led, RGBColor color)
{
if(led > RED_DEVIL_GPU_LED_MAX_COUNT)