added note on callbacks

This commit is contained in:
2020-04-23 19:15:02 +00:00
parent fedd5fc4a6
commit ab9fe9178e
+2
View File
@@ -13,6 +13,7 @@ class PVChecker:
self.vmax = vmax
self.wait_time = wait_time
self.required_fraction = required_fraction
self.data = []
@@ -39,6 +40,7 @@ class PVChecker:
def on_value_change(value=None, **kwargs):
self.data.append(value)
#TODO: don't add callback twice!?
self.pv.add_callback(callback=on_value_change)