- made on-methods private
- added AStirrer::_on_process() for monitoring
This commit is contained in:
@@ -14,9 +14,12 @@ class StirrerSim(AStirrer):
|
||||
return self.speed
|
||||
return 0
|
||||
|
||||
def on_set_speed(self, speed):
|
||||
def _on_set_speed(self, speed):
|
||||
print("Set speed to {} %".format(speed))
|
||||
|
||||
def _on_process(self):
|
||||
print("STATUS = OK!")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
s = StirrerSim(1.0)
|
||||
|
||||
Reference in New Issue
Block a user