Browse Source

Fixed name of DialingState

master
klonfish 10 years ago
parent
commit
f72e615435
  1. 4
      statemachinetest.py

4
statemachinetest.py

@ -55,7 +55,7 @@ class IdleState(AbstractState):
def on_gabelschalter_up(self): def on_gabelschalter_up(self):
print('gabel up') print('gabel up')
return DailingState return DialingState
def on_gabelschalter_down(self): def on_gabelschalter_down(self):
pass pass
@ -117,7 +117,7 @@ class ConnectingState(AbstractState):
def on_call_ringing(self): def on_call_ringing(self):
return WecktState return WecktState
class DailingState(AbstractState): class DialingState(AbstractState):
def on_gabelschalter_down(self): def on_gabelschalter_down(self):
return IdleState return IdleState

Loading…
Cancel
Save