From 92eee579ffa244b0c30a88514dea20431a30bd72 Mon Sep 17 00:00:00 2001 From: Grzegorz Daniluk Date: Tue, 29 May 2012 15:09:23 +0200 Subject: [PATCH] wrc_main: workaround for all those who want to test WRPC in default configuration without calibration data stored in eeprom --- wrc_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wrc_main.c b/wrc_main.c index 6fa00a51..f1d93cc4 100644 --- a/wrc_main.c +++ b/wrc_main.c @@ -66,7 +66,11 @@ static PtpClockDS ptpClockDS; /////////////////////////////////// //Calibration data (from EEPROM if available) +#ifdef WRPC_MASTER int32_t sfp_alpha = -73622176; //default value if could not read EEPROM +#else +int32_t sfp_alpha = 73622176; //default value if could not read EEPROM +#endif int32_t sfp_deltaTx = 0; int32_t sfp_deltaRx = 0; uint32_t cal_phase_transition = 7000; -- 2.18.1