Commit 97c6921c authored by Andreas Schmidt's avatar Andreas Schmidt

Do not remove appSendPace in post-pacing.

parent 10ccc150
Pipeline #2820 passed with stages
in 1 minute and 41 seconds
......@@ -61,7 +61,7 @@ bool PrrtSocket_pace(PrrtSocket *s, bool prepace) {
prrtTimeDifference_t now = (prrtTimeDifference_t) PrrtClock_get_current_time_us();
diff = ((prrtTimeDifference_t) s->nextSendTime) - now;
if (!prepace) { // post-pacing removes appSendPace
diff -= PrrtPace_get_diff(s->appSendPace);
//diff -= PrrtPace_get_max(s->appSendPace);
diff = MAX(0, diff);
}
if (diff > 0) {
......
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