Fix -0104 controller zone detection

This commit is contained in:
Adam Honse 2019-08-15 12:02:25 -05:00
parent b17d87a15b
commit 7f09b14f50
2 changed files with 8 additions and 2 deletions

View file

@ -66,7 +66,7 @@ AuraController::AuraController(i2c_smbus_interface* bus, aura_dev_id dev)
{
direct_reg = AURA_REG_COLORS_DIRECT_V2;
effect_reg = AURA_REG_COLORS_EFFECT_V2;
led_count = 5;
channel_cfg = AURA_CONFIG_CHANNEL_V2;
}
// Assume first generation controller if string does not match
else
@ -132,9 +132,13 @@ const char * AuraController::GetChannelName(unsigned int led)
return(aura_channels[8]);
break;
default:
case (unsigned char)AURA_LED_CHANNEL_RGB_HEADER_3:
return(aura_channels[9]);
break;
default:
return(aura_channels[10]);
break;
}
}

View file

@ -62,6 +62,7 @@ enum
AURA_LED_CHANNEL_BACKPLATE = 0x88, /* Backplate zone LED channel */
AURA_LED_CHANNEL_DRAM = 0x8A, /* DRAM LED channel */
AURA_LED_CHANNEL_PCIE = 0x8B, /* PCIe zone LED channel */
AURA_LED_CHANNEL_RGB_HEADER_3 = 0x91, /* RGB Header 3 LED channel */
};
static const char* aura_channels[] = /* Aura channel strings */
@ -75,6 +76,7 @@ static const char* aura_channels[] = /* Aura channel strings
"PCIe",
"RGB Header",
"RGB Header 2",
"RGB Header",
"Unknown",
};