Commit 1a437d32 authored by José Luis  Gutiérrez's avatar José Luis Gutiérrez

p2p: removing #elif from fsm-table

In order to choose between P2P or E2E we used #ifdef and #elif which was
not correct, now #elif has been removed.
parent a1a89b39
......@@ -23,7 +23,8 @@ struct pp_state_table_item pp_state_table[] = {
{ PPS_UNCALIBRATED, "uncalibrated", pp_uncalibrated,},
#ifdef CONFIG_E2E
{ PPS_SLAVE, "slave", pp_slave,},
#elif CONFIG_P2P
#endif
#ifdef CONFIG_P2P
{ PPS_SLAVE, "pclocks", pp_pclock,},
#endif
{ WRS_PRESENT, "uncalibrated/wr-present", wr_present,},
......
......@@ -24,7 +24,8 @@ struct pp_state_table_item pp_state_table[] __attribute__((weak)) = {
{ PPS_UNCALIBRATED, "uncalibrated", pp_uncalibrated,},
#ifdef CONFIG_E2E
{ PPS_SLAVE, "slave", pp_slave,},
#elif CONFIG_P2P
#endif
#ifdef CONFIG_P2P
{ PPS_SLAVE, "pclocks", pp_pclock,},
#endif
{ PPS_END_OF_TABLE,}
......
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