Fix copter id getter

This commit is contained in:
Artem30801
2019-04-09 10:49:18 +03:00
parent db04cc794a
commit b9008204ee
2 changed files with 3 additions and 2 deletions

View File

@@ -256,8 +256,9 @@ class Client(messaging.ConnectionManager):
if self.on_connect:
self.on_connect(self)
def _got_id(self):
def _got_id(self, value):
logging.info("Got copter id: {} for client {}".format(self.copter_id, self.addr))
self.copter_id = value
if Client.on_first_connect:
Client.on_first_connect(self)