Store name in CoolerMasterControllers to avoid setting it in detectors
This commit is contained in:
parent
ddc8bc5885
commit
5db766cfa0
16 changed files with 78 additions and 59 deletions
|
|
@ -14,11 +14,13 @@
|
|||
#include "CMMMController.h"
|
||||
#include "StringUtils.h"
|
||||
|
||||
CMMMController::CMMMController(hid_device* dev_handle, char *_path, uint16_t pid) : product_id(pid)
|
||||
CMMMController::CMMMController(hid_device* dev_handle, char *_path, uint16_t pid, std::string dev_name)
|
||||
{
|
||||
dev = dev_handle;
|
||||
location = _path;
|
||||
name = dev_name;
|
||||
current_speed = CM_MM_SPEED_3;
|
||||
product_id = pid;
|
||||
|
||||
if(product_id == CM_MM530_PID || product_id == CM_MM531_PID)
|
||||
{
|
||||
|
|
@ -144,6 +146,11 @@ std::string CMMMController::GetLocation()
|
|||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string CMMMController::GetName()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
uint16_t CMMMController::GetProductID()
|
||||
{
|
||||
return product_id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue