Commit 4498a41f authored by Adam Wujek's avatar Adam Wujek 💬 Committed by Grzegorz Daniluk

shell/cmp_ptp: report p2p as error when not compiled

Remove possibility to set ptp into p2p mode when it is not compiled
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent ddbbda41
......@@ -19,8 +19,10 @@ struct subcmd {
{"stop", wrc_ptp_run, 0},
{"e2e", wrc_ptp_sync_mech, PP_E2E_MECH},
{"delay", wrc_ptp_sync_mech, PP_E2E_MECH},
#ifdef CONFIG_P2P
{"p2p", wrc_ptp_sync_mech, PP_P2P_MECH},
{"pdelay", wrc_ptp_sync_mech, PP_P2P_MECH},
#endif
{"gm", wrc_ptp_set_mode, WRC_MODE_GM},
{"master", wrc_ptp_set_mode, WRC_MODE_MASTER},
{"slave", wrc_ptp_set_mode, WRC_MODE_SLAVE},
......
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