xiaoxiang781216 commented on code in PR #22457: URL: https://github.com/apache/nuttx/pull/22457#discussion_r4715307366
########## drivers/power/pm/pm_idle.c: ########## @@ -158,7 +158,7 @@ void pm_idle(pm_idle_handler_t handler) newstate = pm_checkstate(domain); ret = pm_changestate(domain, newstate); - if (ret < 0) + if (ret != OK) Review Comment: why not fix pm_changestate return the consistent code -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
