sysclk: small TDP rework

This commit is contained in:
souldbminersmwc
2026-03-21 17:38:52 -04:00
parent d3c441f8ca
commit 87911b8b9e
2 changed files with 2 additions and 3 deletions

View File

@@ -574,8 +574,7 @@ void ClockManager::VRRThread(void* arg) {
}
void ClockManager::HandleSafetyFeatures() {
AppletOperationMode opMode = appletGetOperationMode();
if(this->config->GetConfigValue(HocClkConfigValue_HandheldTDP) && opMode == AppletOperationMode_Handheld) {
if(this->config->GetConfigValue(HocClkConfigValue_HandheldTDP) && (this->context->profile != SysClkProfile_Docked)) { // Enable while charging as non-PD charger can cause lack of power
if(Board::GetConsoleType() == HorizonOCConsoleType_Hoag) {
if(Board::GetPowerMw(SysClkPowerSensor_Avg) < -(int)this->config->GetConfigValue(HocClkConfigValue_LiteTDPLimit)) {
ResetToStockClocks();