Skip to content

Commit 5841b2c

Browse files
Change default name for HyperX DRAM
1 parent 5286c27 commit 5841b2c

3 files changed

Lines changed: 2 additions & 11 deletions

File tree

Controllers/HyperXDRAMController/HyperXDRAMController.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ HyperXDRAMController::HyperXDRAMController(i2c_smbus_interface* bus, hyperx_dev_
1616
this->dev = dev;
1717
slots_valid = slots;
1818

19-
strcpy(device_name, "HyperX Predator RGB");
20-
2119
led_count = 0;
2220

2321
for(unsigned int slot = 0; slot < 4; slot++)
@@ -37,11 +35,6 @@ HyperXDRAMController::~HyperXDRAMController()
3735

3836
}
3937

40-
std::string HyperXDRAMController::GetDeviceName()
41-
{
42-
return(device_name);
43-
}
44-
4538
std::string HyperXDRAMController::GetDeviceLocation()
4639
{
4740
std::string return_string(bus->device_name);

Controllers/HyperXDRAMController/HyperXDRAMController.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ class HyperXDRAMController
207207
HyperXDRAMController(i2c_smbus_interface* bus, hyperx_dev_id dev, unsigned char slots);
208208
~HyperXDRAMController();
209209

210-
std::string GetDeviceName();
211210
std::string GetDeviceLocation();
212211
unsigned int GetLEDCount();
213212
unsigned int GetSlotCount();
@@ -216,14 +215,13 @@ class HyperXDRAMController
216215
void SendApply();
217216

218217
void SetMode(unsigned char new_mode, bool random, unsigned short new_speed);
219-
218+
220219
void SetAllColors(unsigned char red, unsigned char green, unsigned char blue);
221220
void SetEffectColor(unsigned char red, unsigned char green, unsigned char blue);
222221
void SetLEDColor(unsigned int led, unsigned char red, unsigned char green, unsigned char blue);
223222
void SetLEDColor(unsigned int slot, unsigned int led, unsigned char red, unsigned char green, unsigned char blue);
224223

225224
private:
226-
char device_name[32];
227225
unsigned int led_count;
228226
unsigned char slots_valid;
229227
i2c_smbus_interface* bus;

Controllers/HyperXDRAMController/RGBController_HyperXDRAM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RGBController_HyperXDRAM::RGBController_HyperXDRAM(HyperXDRAMController* hyperx_
1414
{
1515
hyperx = hyperx_ptr;
1616

17-
name = hyperx->GetDeviceName();
17+
name = "HyperX DRAM";
1818
vendor = "HyperX";
1919
type = DEVICE_TYPE_DRAM;
2020
description = "HyperX DRAM Device";

0 commit comments

Comments
 (0)