fix: add calls to self
This commit is contained in:
@@ -36,7 +36,7 @@ class CallManager:
|
|||||||
response = s.recv(1024)
|
response = s.recv(1024)
|
||||||
print("Call notice sent", "response=", response.decode())
|
print("Call notice sent", "response=", response.decode())
|
||||||
s.close()
|
s.close()
|
||||||
undeaf_mumble()
|
self.undeaf_mumble()
|
||||||
self.state = OUTGOING_CALL
|
self.state = OUTGOING_CALL
|
||||||
self.station = station
|
self.station = station
|
||||||
station["red"].on()
|
station["red"].on()
|
||||||
@@ -45,7 +45,7 @@ class CallManager:
|
|||||||
station["green"].off()
|
station["green"].off()
|
||||||
|
|
||||||
def incoming_call(self, station):
|
def incoming_call(self, station):
|
||||||
undeaf_mumble()
|
self.undeaf_mumble()
|
||||||
self.state = INCOMING_CALL
|
self.state = INCOMING_CALL
|
||||||
self.station = station
|
self.station = station
|
||||||
station["red"].on()
|
station["red"].on()
|
||||||
@@ -54,7 +54,7 @@ class CallManager:
|
|||||||
print("Hang! self.station", self.station)
|
print("Hang! self.station", self.station)
|
||||||
if self.station is not None:
|
if self.station is not None:
|
||||||
self.station["red"].off()
|
self.station["red"].off()
|
||||||
deaf_mumble()
|
self.deaf_mumble()
|
||||||
self.state = NO_CALL
|
self.state = NO_CALL
|
||||||
self.station = None
|
self.station = None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user