From 45f360738de2c61e307176180b4f69db4d07023f Mon Sep 17 00:00:00 2001 From: Kython89 Date: Sat, 10 Feb 2024 09:15:04 -0600 Subject: [PATCH] Fixes stateInitialized var not being initialized. Fixes the m_stateInitialized not being initialized which causes non deterministic behavior as to if the `sysid-test-state-` will appear in the log. --- wpilibc/src/main/native/include/frc/sysid/SysIdRoutineLog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpilibc/src/main/native/include/frc/sysid/SysIdRoutineLog.h b/wpilibc/src/main/native/include/frc/sysid/SysIdRoutineLog.h index 3c7544a6730..5e727169068 100644 --- a/wpilibc/src/main/native/include/frc/sysid/SysIdRoutineLog.h +++ b/wpilibc/src/main/native/include/frc/sysid/SysIdRoutineLog.h @@ -194,7 +194,7 @@ class SysIdRoutineLog { private: LogEntries m_logEntries; std::string m_logName; - bool m_stateInitialized; + bool m_stateInitialized = false; wpi::log::StringLogEntry m_state; }; } // namespace frc::sysid