kirr has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmocom-bb/+/40058?usp=email ) Change subject: trx_toolkit/data_if: No need to explicitly cast bytes to bytearray when doing RxMsg.parse_msg ...................................................................... trx_toolkit/data_if: No need to explicitly cast bytes to bytearray when doing RxMsg.parse_msg I already did similar change for TxMsg.parse_msg in 06456f11 (trx_toolkit/*: Try to avoid copying burst data where possible) but missed to do the symmetrical case for RxMsg. -> Do that. Change-Id: I54b8623a99b24da4ae1c4d379e9f45871f931554 --- M src/target/trx_toolkit/data_if.pyx 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/58/40058/1 diff --git a/src/target/trx_toolkit/data_if.pyx b/src/target/trx_toolkit/data_if.pyx index ca4d82d..14b8808 100644 --- a/src/target/trx_toolkit/data_if.pyx +++ b/src/target/trx_toolkit/data_if.pyx @@ -87,7 +87,7 @@ # Attempt to parse a TRXD Rx message try: msg = RxMsg() - msg.parse_msg(bytearray(data)) + msg.parse_msg(data) except: log.error("Failed to parse a TRXD Rx message " "from R:%s" % self.desc_remote()) -- To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/40058?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmocom-bb Gerrit-Branch: master Gerrit-Change-Id: I54b8623a99b24da4ae1c4d379e9f45871f931554 Gerrit-Change-Number: 40058 Gerrit-PatchSet: 1 Gerrit-Owner: kirr <kirr@nexedi.com> Gerrit-CC: fixeria <vyanitskiy@sysmocom.de> Gerrit-CC: osmith <osmith@sysmocom.de> Gerrit-CC: pespin <pespin@sysmocom.de>