diff options
Diffstat (limited to 'src/target/trx_toolkit/burst_send.py')
-rwxr-xr-x | src/target/trx_toolkit/burst_send.py | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/target/trx_toolkit/burst_send.py b/src/target/trx_toolkit/burst_send.py index 368031ce..27f585e0 100755 --- a/src/target/trx_toolkit/burst_send.py +++ b/src/target/trx_toolkit/burst_send.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # TRX Toolkit @@ -17,10 +17,6 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. APP_CR_HOLDERS = [("2017-2018", "Vadim Yanitskiy <axilirator@gmail.com>")] @@ -79,11 +75,10 @@ class Application(ApplicationBase): def msg_pass_filter(self, msg): # Direction filter - l12trx = self.argv.conn_mode == "TRX" - if isinstance(msg, DATAMSG_L12TRX) and not l12trx: - return False - elif isinstance(msg, DATAMSG_TRX2L1) and l12trx: - return False + if isinstance(msg, RxMsg) and self.argv.conn_mode == "TRX": + return False # cannot send RxMsg to TRX + if isinstance(msg, TxMsg) and self.argv.conn_mode == "L1": + return False # cannot send TxMsg to L1 # Timeslot filter if self.argv.pf_tn is not None: |