From 8dcfb4e0158707688fd82d8af5c1fbf6226b2665 Mon Sep 17 00:00:00 2001 From: MrBungle42 Date: Thu, 13 Jul 2017 14:05:20 -0400 Subject: [PATCH] Update ambe_bridge.py Make template.bin not found a fatal error. --- dmr_utils/ambe_bridge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmr_utils/ambe_bridge.py b/dmr_utils/ambe_bridge.py index 9cd9df7..f96f6a4 100755 --- a/dmr_utils/ambe_bridge.py +++ b/dmr_utils/ambe_bridge.py @@ -636,7 +636,7 @@ class AMBE_IPSC(AMBE_BASE): _t.close() except IOError: self._logger.error('Can not open template.bin file') - return + exit() self._logger.debug('IPSC templates loaded') def export_voice(self, _tx_slot, _seq, _ambe): self.send_tlv(TAG_AMBE_49, struct.pack("b",_tx_slot.slot) + _ambe) # send AMBE