diff --git a/panda/src/testbed/deadrec_rec.cxx b/panda/src/testbed/deadrec_rec.cxx index 458d114f54..992c97db40 100644 --- a/panda/src/testbed/deadrec_rec.cxx +++ b/panda/src/testbed/deadrec_rec.cxx @@ -406,8 +406,10 @@ inline static void predict_linear(void) { static float A_time, B_time; static float time = 0.; - if (reinit_prediction) + if (reinit_prediction) { state = 0; + reinit_prediction = false; + } switch (state) { case 0: if (new_telemetry) {