mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-24 09:28:52 -04:00
Store name in ZotacTuringGPUController to avoid setting it in detector
This commit is contained in:
1 parent
ad9fd08a08
commit
eb199dae67
4 files changed
+49
-42
No files matched your search
@@ -11,10 +11,11 @@
|
||||
|
||||
#include "ZotacTuringGPUController.h"
|
||||
|
||||
ZotacTuringGPUController::ZotacTuringGPUController(i2c_smbus_interface* bus, u8 dev)
|
||||
ZotacTuringGPUController::ZotacTuringGPUController(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;
|
||||
}
|
||||
|
||||
ZotacTuringGPUController::~ZotacTuringGPUController()
|
||||
@@ -31,6 +32,11 @@ std::string ZotacTuringGPUController::GetDeviceLocation()
|
||||
return("I2C: " + return_string);
|
||||
}
|
||||
|
||||
std::string ZotacTuringGPUController::GetDeviceName()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
void ZotacTuringGPUController::GetMode(RGBColor& color, int& mode, unsigned int& speed)
|
||||
{
|
||||
u8 rdata_pkt[I2C_SMBUS_BLOCK_MAX] = { 0x00 };
|
||||
|
||||
Reference in new issue
Block a user