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