- refactored

git-svn-id: http://moon:8086/svn/projects/HendiControl@380 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
2020-04-20 15:50:25 +00:00
parent ec85ab3c73
commit 16b77f0a17
9 changed files with 38 additions and 25 deletions
+5 -2
View File
@@ -3,10 +3,13 @@ import math
class TempSensorSim(ATemperatureSensor):
def __init__(self, name):
super(TempSensorSim, self).__init__(name)
def name(self):
return "FakeTemp"
def __init__(self):
self.count = 0
self.freq = 0.2
self.log("Created")
def temperature(self):
self.count += 1