Commit b1241ea3 authored by Adam Wujek's avatar Adam Wujek Committed by Adam Wujek

lib: use wrc_ptp_is_abscal() instead of directly ptp_mode

Thanks to this commit, it is possible to drop wrpc.h dependency
for some files
Signed-off-by: 's avatarAdam Wujek <adam.wujek@creotech.pl>
parent fe7f6571
......@@ -16,5 +16,6 @@ int wrc_ptp_stop(void);
int wrc_ptp_update(void);
int wrc_ptp_bmc_update(void);
int wrc_ptp_link_down(void);
int wrc_ptp_is_abscal(void);
#endif
......@@ -104,7 +104,7 @@ static int bootp_poll(void)
return 0;
/* no extra traffic when abscal is in progress */
if (HAS_ABSCAL && ptp_mode == WRC_MODE_ABSCAL)
if (HAS_ABSCAL && wrc_ptp_is_abscal())
return 0;
if (len > 0)
......
......@@ -246,7 +246,7 @@ int lldp_poll(void)
static uint8_t old_mac[ETH_ALEN];
/* no extra traffic when abscal is in progress */
if (HAS_ABSCAL && ptp_mode == WRC_MODE_ABSCAL)
if (HAS_ABSCAL && wrc_ptp_is_abscal())
return 0;
/* periodic tasks */
......
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