kirr has uploaded this change for review.
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 change 40058. To unsubscribe, or for help writing mail filters, visit settings.