Use HID path for Location on Aorus CPU Cooler controller

This commit is contained in:
Adam Honse committed 2020-10-02 21:02:32 -05:00
1 parent 4df557391a
commit c8da008b93
4 files changed
+14 -4

No files matched your search

@@ -11,9 +11,10 @@
#include <cstring>
ATC800Controller::ATC800Controller(hid_device* dev_handle)
ATC800Controller::ATC800Controller(hid_device* dev_handle, const char* path)
{
dev = dev_handle;
dev = dev_handle;
location = path;
}
ATC800Controller::~ATC800Controller()
@@ -21,6 +22,11 @@ ATC800Controller::~ATC800Controller()
hid_close(dev);
}
std::string ATC800Controller::GetDeviceLocation()
{
return(location);
}
void ATC800Controller::SendCoolerMode
(
unsigned char mode,