trx_toolkit/fake_trx.py: move Rx burst handling to Transceiver

Change-Id: Ic1f44bfb21ac3173e9530a0a9966cd5e64b8bd48
This commit is contained in:
Vadim Yanitskiy 2020-07-10 04:42:21 +07:00 committed by laforge
parent 37c81fea95
commit e2aaeb59b3
2 changed files with 5 additions and 2 deletions

View File

@ -252,8 +252,7 @@ class FakeTRX(Transceiver):
if src_trx.ta != 0:
msg.toa256 -= src_trx.ta * 256
# TODO: make legacy mode configurable (via argv?)
self.data_if.send_msg(msg, legacy = True)
Transceiver.handle_data_msg(self, msg)
# Simulation specific CTRL command handler
def ctrl_cmd_handler(self, request):

View File

@ -276,3 +276,7 @@ class Transceiver:
return None
return msg
def handle_data_msg(self, msg):
# TODO: make legacy mode configurable (via argv?)
self.data_if.send_msg(msg, legacy = True)