mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-11 16:13:45 -04:00
Store name in ZotacV2GPUController to avoid setting it in detector
This commit is contained in:
@@ -12,10 +12,11 @@
|
||||
#include "ZotacV2GPUController.h"
|
||||
#include "LogManager.h"
|
||||
|
||||
ZotacV2GPUController::ZotacV2GPUController(i2c_smbus_interface* bus, u8 dev)
|
||||
ZotacV2GPUController::ZotacV2GPUController(i2c_smbus_interface* bus, u8 dev, std::string dev_name)
|
||||
{
|
||||
this->bus = bus;
|
||||
this->dev = dev;
|
||||
this->bus = bus;
|
||||
this->dev = dev;
|
||||
this->name = dev_name;
|
||||
|
||||
if(dev)
|
||||
{
|
||||
@@ -37,9 +38,14 @@ std::string ZotacV2GPUController::GetDeviceLocation()
|
||||
return ("I2C: " + return_string);
|
||||
}
|
||||
|
||||
std::string ZotacV2GPUController::GetName()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
std::string ZotacV2GPUController::GetVersion()
|
||||
{
|
||||
return version;
|
||||
return(version);
|
||||
}
|
||||
|
||||
bool ZotacV2GPUController::ReadVersion()
|
||||
|
||||
Reference in New Issue
Block a user