File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -383,6 +383,8 @@ void SequenceManager::sequenceLoop(int64_t interval_us)
383383
384384 LoopTimer sequenceLoopTimer (interval_us, " sequenceThread" );
385385 sequenceLoopTimer.init ();
386+ int32_t nextTimePrint_us = startTime_us;
387+ int32_t nextTimerSync_us = startTime_us;
386388
387389 while (!sequenceToStop)
388390 {
@@ -397,14 +399,12 @@ void SequenceManager::sequenceLoop(int64_t interval_us)
397399 break ;
398400 }
399401
400- static int32_t nextTimePrint_us = startTime_us;
401402 if (sequenceTime_us >= nextTimePrint_us)
402403 {
403404 Debug::info (" Sequence Time: %dus" , sequenceTime_us);
404405 nextTimePrint_us += 300000 ;
405406 }
406407
407- static int32_t nextTimerSync_us = startTime_us;
408408 if (sequenceTime_us >= nextTimerSync_us)
409409 {
410410 EcuiSocket::SendJson (" timer-sync" , ((sequenceTime_us/1000 ) / 1000.0 ));
You can’t perform that action at this time.
0 commit comments