Improved USB-C charger detection for FA507 https://github.com/seerge/g-helper/issues/2018

This commit is contained in:
Serge
2024-02-02 21:12:29 +01:00
parent accb8e13d6
commit b402535a73

View File

@@ -185,6 +185,8 @@ namespace GHelper.Gpu
if (SystemInformation.PowerStatus.PowerLineStatus != PowerLineStatus.Online) return false;
if (!AppConfig.Is("optimized_usbc")) return true;
if (AppConfig.ContainsModel("FA507")) Thread.Sleep(600);
int chargerMode = Program.acpi.DeviceGet(AsusACPI.ChargerMode);
Logger.WriteLine("ChargerStatus: " + chargerMode);