Change default name for HyperX DRAM

This commit is contained in:
Adam Honse 2020-12-05 02:47:21 -06:00
parent 5286c27b25
commit 5841b2c55d
3 changed files with 2 additions and 11 deletions

View file

@ -16,8 +16,6 @@ HyperXDRAMController::HyperXDRAMController(i2c_smbus_interface* bus, hyperx_dev_
this->dev = dev;
slots_valid = slots;
strcpy(device_name, "HyperX Predator RGB");
led_count = 0;
for(unsigned int slot = 0; slot < 4; slot++)
@ -37,11 +35,6 @@ HyperXDRAMController::~HyperXDRAMController()
}
std::string HyperXDRAMController::GetDeviceName()
{
return(device_name);
}
std::string HyperXDRAMController::GetDeviceLocation()
{
std::string return_string(bus->device_name);

View file

@ -207,7 +207,6 @@ public:
HyperXDRAMController(i2c_smbus_interface* bus, hyperx_dev_id dev, unsigned char slots);
~HyperXDRAMController();
std::string GetDeviceName();
std::string GetDeviceLocation();
unsigned int GetLEDCount();
unsigned int GetSlotCount();
@ -223,7 +222,6 @@ public:
void SetLEDColor(unsigned int slot, unsigned int led, unsigned char red, unsigned char green, unsigned char blue);
private:
char device_name[32];
unsigned int led_count;
unsigned char slots_valid;
i2c_smbus_interface* bus;

View file

@ -14,7 +14,7 @@ RGBController_HyperXDRAM::RGBController_HyperXDRAM(HyperXDRAMController* hyperx_
{
hyperx = hyperx_ptr;
name = hyperx->GetDeviceName();
name = "HyperX DRAM";
vendor = "HyperX";
type = DEVICE_TYPE_DRAM;
description = "HyperX DRAM Device";