Added option to disable tablet mode switch in config

This commit is contained in:
Serge
2023-07-05 14:55:52 +02:00
parent 5f1c926527
commit 2d4e794084
2 changed files with 2 additions and 1 deletions

View File

@@ -342,6 +342,7 @@ namespace GHelper.Input
public static void TabletMode()
{
if (AppConfig.Is("disable_tablet")) return;
bool touchpadState = GetTouchpadState();
bool tabletState = Program.acpi.DeviceGet(AsusACPI.TabletState) > 0;

View File

@@ -345,7 +345,7 @@ namespace GHelper.Mode
if (cpuTemp >= RyzenControl.MinTemp && cpuTemp < RyzenControl.MaxTemp)
{
var resultCPU = SendCommand.set_tctl_temp((uint)cpuTemp);
Logger.WriteLine($"CPU Temp: {cpuTemp} {resultCPU}");
if (log) Logger.WriteLine($"CPU Temp: {cpuTemp} {resultCPU}");
var restultAPU = SendCommand.set_apu_skin_temp_limit((uint)cpuTemp);
if (log) Logger.WriteLine($"APU Temp: {cpuTemp} {restultAPU}");