demo sample temp: allow stopping
Change-Id: I74ddb8d8c7919e0123431de3833d7f7a4a3c22bd
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user