demo sample temp: allow stopping

Change-Id: I74ddb8d8c7919e0123431de3833d7f7a4a3c22bd
This commit is contained in:
Georg Brandl
2025-08-03 10:37:55 +02:00
committed by Markus Zolliker
parent 52def86ac8
commit 8ba9f91f8a

View File

@@ -248,6 +248,9 @@ class SampleTemp(Drivable):
# note: setting self.target to the new value is done after this.... # note: setting self.target to the new value is done after this....
# note: we may also return the read-back value from the hw here # note: we may also return the read-back value from the hw here
def stop(self):
self.target = self.value
def _thread(self): def _thread(self):
loopdelay = 1 loopdelay = 1
while True: while True: