From 5adbc1fcf28c404e773de40f5419a656be313aaf Mon Sep 17 00:00:00 2001 From: harry Date: Sat, 15 Apr 2023 15:53:17 -0400 Subject: [PATCH] Minor initialization fix for state recorder. --- src/state.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/state.cpp b/src/state.cpp index 65c2dbae..f9c05c54 100644 --- a/src/state.cpp +++ b/src/state.cpp @@ -1205,8 +1205,6 @@ class StateRecorder lastState = ringHead; loadIndexReset = false; lastLoadFrame = 0; - loadPauseTime = 3; - pauseOnLoad = StateRecorderConfigData::TEMPORARY_PAUSE; } ~StateRecorder(void) @@ -1244,9 +1242,9 @@ class StateRecorder printf("ringBufSize:%i framesPerSnap:%i\n", ringBufSize, framesPerSnap ); - compressionLevel = stateRecorderConfig.compressionLevel; - loadPauseTime = stateRecorderConfig.loadPauseTimeSeconds; - pauseOnLoad = stateRecorderConfig.pauseOnLoad; + compressionLevel = config.compressionLevel; + loadPauseTime = config.loadPauseTimeSeconds; + pauseOnLoad = config.pauseOnLoad; } void update(void)