Commit 89539827 authored by Jean-Claude BAU's avatar Jean-Claude BAU Committed by Adam Wujek

Create enumerate PPS_LAST_STATE. Used to check if the state is a non

standard PTP state.
parent f834fa97
......@@ -92,7 +92,7 @@ int pp_leave_current_state(struct pp_instance *ppi)
pp_hooks.state_change(ppi);
/* if the next or old state is non standard PTP reset all timeouts */
if ((ppi->state > PPS_SLAVE) || (ppi->next_state > PPS_SLAVE))
if ((ppi->state > PPS_LAST_STATE) || (ppi->next_state > PPS_LAST_STATE))
pp_timeout_setall(ppi);
ppi->state = ppi->next_state;
......
......@@ -268,6 +268,7 @@ enum pp_std_states {
PPS_PASSIVE,
PPS_UNCALIBRATED,
PPS_SLAVE,
PPS_LAST_STATE=PPS_SLAVE
};
enum pp_std_messages {
......
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