Store name in GigabyteAorusCPUCoolerController to avoid setting it in detector

This commit is contained in:
Adam Honse
2025-08-08 11:35:21 -05:00
parent 6f9e164874
commit 7d0db424ec
4 changed files with 20 additions and 13 deletions

View File

@@ -13,10 +13,11 @@
#include "ATC800Controller.h"
#include "StringUtils.h"
ATC800Controller::ATC800Controller(hid_device* dev_handle, const char* path)
ATC800Controller::ATC800Controller(hid_device* dev_handle, const char* path, std::string dev_name)
{
dev = dev_handle;
location = path;
name = dev_name;
}
ATC800Controller::~ATC800Controller()
@@ -29,6 +30,11 @@ std::string ATC800Controller::GetDeviceLocation()
return("HID: " + location);
}
std::string ATC800Controller::GetNameString()
{
return(name);
}
std::string ATC800Controller::GetSerialString()
{
wchar_t serial_string[128];