You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After having this error, I noticed that pm_policy_state_lock_put(PM_STATE_SUSPEND_TO_IDLE,PM_ALL_SUBSTATES); called more (options.extra_samplings times) than pm_policy_state_lock_get(PM_STATE_SUSPEND_TO_IDLE, PM_ALL_SUBSTATES); only one time in adc_stm32_read function.
so I fixed the issue by replacing if (++data->samples_count == data->channel_count) condition with if (++data->samples_count == data->ctx.options.extra_samplings)
so I added additional logs to see how many times lock_put and / get functions called: Please see:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
After having this error, I noticed that
pm_policy_state_lock_put(PM_STATE_SUSPEND_TO_IDLE,PM_ALL_SUBSTATES);
called more (options.extra_samplings times) thanpm_policy_state_lock_get(PM_STATE_SUSPEND_TO_IDLE, PM_ALL_SUBSTATES);
only one time in adc_stm32_read function.so I fixed the issue by replacing
if (++data->samples_count == data->channel_count)
condition withif (++data->samples_count == data->ctx.options.extra_samplings)
so I added additional logs to see how many times lock_put and / get functions called: Please see:
Beta Was this translation helpful? Give feedback.
All reactions