Skip to content

Fix RTM disable payload power error check#226

Merged
augustofg merged 1 commit intomasterfrom
fix-rtm-disable-pp-err-detect
Feb 5, 2025
Merged

Fix RTM disable payload power error check#226
augustofg merged 1 commit intomasterfrom
fix-rtm-disable-pp-err-detect

Conversation

@augustofg
Copy link
Member

Commit 331bb6f replaced the rtm_quiesce() function with rtm_disable_payload_power(), but the last returns the mmc_err enum type, so it should be compared with the enum values.

MMC_OK is the first value defined in the mmc_err enum type, so it was represented numerically as 0, and would evaluate as false in the if statement.

@augustofg augustofg force-pushed the fix-rtm-disable-pp-err-detect branch from 55a3f2f to 9d2ca4a Compare February 4, 2025 13:06
Commit 331bb6f replaced the
rtm_quiesce() function with rtm_disable_payload_power(), but the later
returns the mmc_err enum type, so it should be compared with the enum
values.

MMC_OK is the first value defined in the mmc_err enum type, so it was
represented numerically as 0, and would evaluate as false in the if
statement.
@augustofg augustofg force-pushed the fix-rtm-disable-pp-err-detect branch from 9d2ca4a to 4a1fe86 Compare February 4, 2025 13:09
@augustofg augustofg merged commit 4a1fe86 into master Feb 5, 2025
7 checks passed
@augustofg augustofg deleted the fix-rtm-disable-pp-err-detect branch February 5, 2025 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants