Skip to content

Commit

Permalink
Fix state enum name in dynamic command name
Browse files Browse the repository at this point in the history
  • Loading branch information
auscompgeek authored Jan 15, 2024
1 parent 8ff6b93 commit 99da251
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion commands2/sysid/sysidroutine.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ def end(interrupted: bool):
self.mechanism.subsystem.runOnce(command)
.andThen(self.mechanism.subsystem.run(execute))
.finallyDo(end)
.withName(f"sysid-{state}-{self.mechanism.name}")
.withName(
f"sysid-{SysIdRoutineLog.stateEnumToString(state)}-{self.mechanism.name}"
)
.withTimeout(self.config.timeout)
)

0 comments on commit 99da251

Please sign in to comment.