Store name in GigabyteRGBFusion2GPUController to avoid setting it in detector
This commit is contained in:
parent
bed69130fd
commit
df56b42e62
4 changed files with 102 additions and 95 deletions
|
|
@ -14,10 +14,11 @@
|
|||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
RGBFusion2GPUController::RGBFusion2GPUController(i2c_smbus_interface* bus, rgb_fusion_dev_id dev)
|
||||
RGBFusion2GPUController::RGBFusion2GPUController(i2c_smbus_interface* bus, rgb_fusion_dev_id dev, std::string dev_name)
|
||||
{
|
||||
this->bus = bus;
|
||||
this->dev = dev;
|
||||
this->bus = bus;
|
||||
this->dev = dev;
|
||||
this->name = dev_name;
|
||||
}
|
||||
|
||||
RGBFusion2GPUController::~RGBFusion2GPUController()
|
||||
|
|
@ -35,6 +36,11 @@ std::string RGBFusion2GPUController::GetDeviceLocation()
|
|||
return("I2C: " + return_string);
|
||||
}
|
||||
|
||||
std::string RGBFusion2GPUController::GetDeviceName()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
void RGBFusion2GPUController::SaveConfig()
|
||||
{
|
||||
uint8_t data_pkt[8] = { 0xAA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue