[wpilibc] SysIdRoutineLog: Initialize m_stateInitialized (#6359)

This caused non-deterministic behavior as to if the `sysid-test-state-` will appear in the log.
This commit is contained in:
Kython89
2024-02-10 12:40:38 -06:00
committed by GitHub
parent 1db3936965
commit 300419c151

View File

@@ -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