Store name in EVGATuringGPUController to avoid setting it in detector
This commit is contained in:
parent
df75659778
commit
d7f0872690
5 changed files with 34 additions and 29 deletions
|
|
@ -11,10 +11,11 @@
|
|||
|
||||
#include "EVGAGPUv2Controller.h"
|
||||
|
||||
EVGAGPUv2Controller::EVGAGPUv2Controller(i2c_smbus_interface* bus, evga_dev_id dev)
|
||||
EVGAGPUv2Controller::EVGAGPUv2Controller(i2c_smbus_interface* bus, evga_dev_id dev, std::string dev_name)
|
||||
{
|
||||
this->bus = bus;
|
||||
this->dev = dev;
|
||||
this->bus = bus;
|
||||
this->dev = dev;
|
||||
this->name = dev_name;
|
||||
}
|
||||
|
||||
EVGAGPUv2Controller::~EVGAGPUv2Controller()
|
||||
|
|
@ -33,6 +34,11 @@ std::string EVGAGPUv2Controller::GetDeviceLocation()
|
|||
return("I2C: " + return_string);
|
||||
}
|
||||
|
||||
std::string EVGAGPUv2Controller::GetDeviceName()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
unsigned char EVGAGPUv2Controller::GetBrightnessA()
|
||||
{
|
||||
return(bus->i2c_smbus_read_byte_data(dev, EVGA_GPU_V2_REG_COLOR_A_BRIGHTNESS));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue