Skip to content

Commit 6e261f2

Browse files
committed
move reset after robot periodic
1 parent ea00c34 commit 6e261f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

magicbot/magicrobot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -729,15 +729,15 @@ def _do_periodics(self) -> None:
729729
self.onException()
730730
else:
731731
setter(value)
732-
733-
for reset_dict, component in self._reset_components:
734-
component.__dict__.update(reset_dict)
735732

736733
watchdog.addEpoch("@magicbot.feedback")
737734

738735
for periodic, name in self.__periodics:
739736
periodic()
740737
watchdog.addEpoch(name)
738+
739+
for reset_dict, component in self._reset_components:
740+
component.__dict__.update(reset_dict)
741741

742742
def _enabled_periodic(self) -> None:
743743
"""Run components and all periodic methods."""

0 commit comments

Comments
 (0)