mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
This commit is contained in:
@@ -38,7 +38,16 @@ public static class AsusHid
|
||||
{
|
||||
try
|
||||
{
|
||||
return FindDevices(reportId)?.FirstOrDefault()?.Open();
|
||||
var devices = FindDevices(reportId);
|
||||
if (devices is null) return null;
|
||||
|
||||
if (AppConfig.IsZ13())
|
||||
{
|
||||
var z13 = devices.Where(device => device.ProductID == 0x1a30).FirstOrDefault();
|
||||
if (z13 is not null) return z13.Open();
|
||||
}
|
||||
|
||||
return devices.FirstOrDefault()?.Open();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user