From b0752ad9cac783852e5da3687eb4fb6adde5187d Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Tue, 2 Aug 2016 08:12:49 -0500 Subject: [PATCH] Call Router Work (untested) --- hblink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hblink.py b/hblink.py index f417b1c..86629b0 100755 --- a/hblink.py +++ b/hblink.py @@ -191,8 +191,8 @@ class HBMASTER(DatagramProtocol): def send_clients(self, _packet): for _client in self._clients: #add destiantion re-writer here split _data and insert target client radio_id at: _data[11:15] - _tmp_data = _data[:11] + _client + _data[15:] - self.send_packet(_client, _data) + _tmp_packet = _packet[:11] + _client + _packet[15:] + self.send_packet(_client, _tmp_packet) logger.debug('(%s) Packet sent to all connected clients', self._master) def send_packet(self, _client, _packet):