Skip to content

Commit

Permalink
Merge pull request #210 from SunnySrivastava1984/updateConditionForPH…
Browse files Browse the repository at this point in the history
…YPEnabled

Update condition for phyp enabled
  • Loading branch information
SunnySrivastava1984 authored Mar 27, 2024
2 parents 1d0b561 + 353ed50 commit fda8206
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/panel_state_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1119,9 +1119,10 @@ bool PanelStateManager::isRemoteAccessEnabled(
if (pos != panelFunctions.end())
{
// if the function is enabled by PHYP and system at PHYP runtime.
return pos->functionEnabledByPhyp &&
((systemState & SystemStateMask::ENABLE_PHYP_RUNTIME_STATE) ==
SystemStateMask::ENABLE_PHYP_RUNTIME_STATE);
return (
(pos->functionEnabledByPhyp == SystemStateMask::ENABLE_BY_PHYP) &&
((systemState & SystemStateMask::ENABLE_PHYP_RUNTIME_STATE) ==
SystemStateMask::ENABLE_PHYP_RUNTIME_STATE));
}

return false;
Expand Down

0 comments on commit fda8206

Please sign in to comment.