Attempt to auto detect unknown Polychrome firmware versions
This commit is contained in:
parent
7ca0a1b6ab
commit
70e83c13cc
1 changed files with 13 additions and 2 deletions
|
|
@ -60,8 +60,19 @@ PolychromeController::PolychromeController(i2c_smbus_interface* bus, polychrome_
|
|||
break;
|
||||
|
||||
default:
|
||||
led_count = 0;
|
||||
strcpy(device_name, "");
|
||||
unsigned short fw_version = GetFirmwareVersion();
|
||||
printf("Polychrome FW Version: %04X\r\n", fw_version);
|
||||
|
||||
led_count = 1;
|
||||
strcpy(device_name, "ASRock ASR LED/Polychrome Device");
|
||||
if((fw_version >> 8) < 0x03)
|
||||
{
|
||||
asr_led = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
asr_led = false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue