Use byte index 2 of config table for channel count on addressable Aura controllers

This commit is contained in:
Adam Honse
2020-05-12 15:58:00 -05:00
parent d22aa1ed6c
commit 3f0027aa90
4 changed files with 6 additions and 2 deletions

View File

@@ -12,6 +12,7 @@
AuraAddressableController::AuraAddressableController(hid_device* dev_handle) : AuraUSBController(dev_handle)
{
channel_count = config_table[2];
}
AuraAddressableController::~AuraAddressableController()

View File

@@ -12,6 +12,7 @@
AuraMainboardController::AuraMainboardController(hid_device* dev_handle) : AuraUSBController(dev_handle), mode(AURA_MODE_DIRECT)
{
channel_count = 5;
}
AuraMainboardController::~AuraMainboardController()

View File

@@ -25,7 +25,7 @@ AuraUSBController::~AuraUSBController()
unsigned int AuraUSBController::GetChannelCount()
{
return( 5 );
return( channel_count );
}
std::string AuraUSBController::GetDeviceName()

View File

@@ -68,9 +68,11 @@ public:
protected:
hid_device* dev;
unsigned int channel_count;
unsigned char config_table[60];
private:
char device_name[16];
unsigned char config_table[60];
unsigned int led_count;
void GetConfigTable();