Skip to content

Commit

Permalink
fancontrol: increase delays in "fans off" code. Change version to "0.…
Browse files Browse the repository at this point in the history
…63a multiHotKey, for ThinkPad P53".
  • Loading branch information
stenri committed Mar 16, 2020
1 parent 3552fc1 commit cc0d69f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions fancontrol/fancontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ ULONG FANCONTROL::DlgProc(HWND hwnd, ULONG msg, WPARAM mp1, LPARAM mp2)
if (this->CurrentModeFromDialog() != 1)
{
this->SetFan("BIOS", 0x80);
::Sleep(1000);
::Sleep(30000);
}

//
Expand All @@ -833,7 +833,8 @@ ULONG FANCONTROL::DlgProc(HWND hwnd, ULONG msg, WPARAM mp1, LPARAM mp2)
::PostMessage(this->hwndDialog, WM__GETDATA, 0, 0);

this->SetFan("Manual", 1);
::Sleep(5000);
::Sleep(10000);


//
// Now, switch to "Manual: Fan 0". This should turn off both fans.
Expand Down
2 changes: 1 addition & 1 deletion fancontrol/fancontrol.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@



#define FANCONTROLVERSION "0.63 multiHotKey"
#define FANCONTROLVERSION "0.63a multiHotKey, for ThinkPad P53"

#define WM__DISMISSDLG WM_USER+5
#define WM__GETDATA WM_USER+6
Expand Down

0 comments on commit cc0d69f

Please sign in to comment.