diff --git a/magicbot/magicrobot.py b/magicbot/magicrobot.py index 85d1dd7..d0c1bf1 100644 --- a/magicbot/magicrobot.py +++ b/magicbot/magicrobot.py @@ -736,6 +736,9 @@ def _do_periodics(self) -> None: periodic() watchdog.addEpoch(name) + for reset_dict, component in self._reset_components: + component.__dict__.update(reset_dict) + def _enabled_periodic(self) -> None: """Run components and all periodic methods.""" watchdog = self.watchdog @@ -748,6 +751,3 @@ def _enabled_periodic(self) -> None: watchdog.addEpoch(name) self._do_periodics() - - for reset_dict, component in self._reset_components: - component.__dict__.update(reset_dict)