~hp/chimaera_firmware

f0b540f681fff430685e4b63cabc50bd40fe8aa5 — Hanspeter Portner 8 years ago 56783a0
compare absolute value of PTP offset with thresh.
1 files changed, 2 insertions(+), 2 deletions(-)

M ptp/ptp.c
M ptp/ptp.c => ptp/ptp.c +2 -2
@@ 148,8 148,8 @@ _ptp_update_offset(void)
		OO0 = OO1;
	}

#define OFFSET_THRESH 1000.f // 1s
	if(OO0 > OFFSET_THRESH)
#define OFFSET_THRESH 1000.0 // 1s
	if(fabs(OO0) > OFFSET_THRESH)
	{
		timer_pause(ptp_timer);
		ptp_reset();