Skip to content

Commit

Permalink
fix: set resp to 0 before param in sendMsgToSmc
Browse files Browse the repository at this point in the history
  • Loading branch information
VisualEhrmanntraut committed Nov 11, 2024
1 parent 9e48874 commit 2ea3203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NootedRed/NRed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ UInt32 NRed::smuWaitForResponse() const {
CAILResult NRed::sendMsgToSmc(UInt32 msg, UInt32 param, UInt32 *outParam) const {
this->smuWaitForResponse();

this->writeReg32(MP_BASE + mmMP1_SMN_C2PMSG_90, 0);
this->writeReg32(MP_BASE + mmMP1_SMN_C2PMSG_82, param);
this->writeReg32(MP_BASE + mmMP1_SMN_C2PMSG_90, 0);
this->writeReg32(MP_BASE + mmMP1_SMN_C2PMSG_66, msg);

const auto resp = this->smuWaitForResponse();
Expand Down

0 comments on commit 2ea3203

Please sign in to comment.