Commit 063980a2 authored by Alessandro Rubini's avatar Alessandro Rubini

bugfix: state-wr-calib-req: clear wrong timer

This bug has no effect, but I'd better commit it separately for
documentation purposes.  Actually, there is not need to clear the
timeouts when they are state-specific and we are changing state.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 3fe92551
......@@ -53,7 +53,7 @@ int wr_resp_calib_req(struct pp_instance *ppi, unsigned char *pkt, int plen)
state_updated:
if (ppi->next_state != ppi->state)
pp_timeout_clr(ppi, PP_TO_WRS_M_LOCK);
pp_timeout_clr(ppi, PP_TO_RESP_CALIB_REQ);
ppi->next_delay = WR_DSPOR(ppi)->wrStateTimeout;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment