|
|
@ -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 |
|
|
|
|
|
|
|
|
|
|
|