Store name in ColorfulGPUControllers to avoid setting it in detectors
This commit is contained in:
parent
2ec68c29de
commit
526d35edfe
8 changed files with 32 additions and 14 deletions
|
|
@ -10,10 +10,11 @@
|
|||
#include <cstring>
|
||||
#include "ColorfulTuringGPUController.h"
|
||||
|
||||
ColorfulTuringGPUController::ColorfulTuringGPUController(i2c_smbus_interface* bus, colorful_gpu_dev_id dev)
|
||||
ColorfulTuringGPUController::ColorfulTuringGPUController(i2c_smbus_interface* bus, colorful_gpu_dev_id dev, std::string dev_name)
|
||||
{
|
||||
this->bus = bus;
|
||||
this->dev = dev;
|
||||
this->bus = bus;
|
||||
this->dev = dev;
|
||||
this->name = dev_name;
|
||||
}
|
||||
|
||||
ColorfulTuringGPUController::~ColorfulTuringGPUController()
|
||||
|
|
@ -31,6 +32,11 @@ std::string ColorfulTuringGPUController::GetDeviceLocation()
|
|||
return("I2C: " + return_string);
|
||||
}
|
||||
|
||||
std::string ColorfulTuringGPUController::GetDeviceName()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
int ColorfulTuringGPUController::GetMode()
|
||||
{
|
||||
uint8_t data_pkt[COLORFUL_MODE_PACKET_LENGTH];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue