mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-11 01:20:23 -04:00
Attempt to auto detect unknown Polychrome firmware versions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user