We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 07fde9f + d15cd42 commit bd2bf5eCopy full SHA for bd2bf5e
magicbot/magicrobot.py
@@ -736,6 +736,9 @@ def _do_periodics(self) -> None:
736
periodic()
737
watchdog.addEpoch(name)
738
739
+ for reset_dict, component in self._reset_components:
740
+ component.__dict__.update(reset_dict)
741
+
742
def _enabled_periodic(self) -> None:
743
"""Run components and all periodic methods."""
744
watchdog = self.watchdog
@@ -748,6 +751,3 @@ def _enabled_periodic(self) -> None:
748
751
749
752
750
753
self._do_periodics()
-
- for reset_dict, component in self._reset_components:
- component.__dict__.update(reset_dict)
0 commit comments