Commit d80acf22 authored by Matias Guijarro's avatar Matias Guijarro

motor settings: disabling cache for 'position' also disables 'dial_position'

parent 366e6421
......@@ -148,6 +148,9 @@ class AxisSettings:
"""
Remove cache for specified setting
"""
if setting_name == "position":
self.disable_cache("dial_position", flag)
disabled_settings = self.__axis.controller.axis_settings.disabled_settings.setdefault(
self.__axis, set()
)
......
......@@ -630,6 +630,8 @@ def test_axis_disable_cache_settings_from_config(beacon):
mot1_state = m1.state # init
mot1_position = m1.position
mot2_state = m2.state # init
# initialize position
m2.position
# test no cache on both motors
with mock.patch.object(m1.controller, "state") as new_state:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment