Commit 2c116851 authored by Stephane Letz's avatar Stephane Letz
Browse files

Finally remove NETWORK_RESYNCH_LATENCY, raise NETWORK_MAX_LATENCY.

parent e0135c87
......@@ -499,9 +499,6 @@ namespace Jack
if (fCurrentCycleOffset == fMaxCycleOffset) {
// when the sync offset is reached
fSynched = true;
} else if (abs(fCurrentCycleOffset - fMaxCycleOffset) >= NETWORK_RESYNCH_LATENCY) {
jack_info("Resync connection...");
fSynched = false;
}
rx_bytes = Recv(rx_head->fPacketSize, 0);
fRxHeader.fIsLastPckt = rx_head->fIsLastPckt;
......
......@@ -37,8 +37,7 @@ namespace Jack
#define SLAVE_INIT_TIMEOUT 1000000 * 10 // in usec
#define PACKET_TIMEOUT 500000 // in usec
#define NETWORK_MAX_LATENCY 20 // maximun possile latency in network master/slave loop
#define NETWORK_RESYNCH_LATENCY 3 // number of cycles offset before a resync is done....
#define NETWORK_MAX_LATENCY 30 // maximum possible latency in network master/slave loop
/**
\Brief This class describes the basic Net Interface, used by both master and slave.
......
Supports Markdown
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