From cea2cee20ea6fca3036774bc67fdf21b6ff1ed3f Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Fri, 6 Dec 2013 07:00:40 -0600 Subject: [PATCH] Minor Clean-Up --- dmrlink.py | 2 +- ipsc/ipsc_mask.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dmrlink.py b/dmrlink.py index f216e27..1547160 100755 --- a/dmrlink.py +++ b/dmrlink.py @@ -635,7 +635,7 @@ class IPSC(DatagramProtocol): # Packets types that must be originated from a peer (including master peer) if _packettype in ANY_PEER_REQUIRED: - if not(valid_master(self._network, _peerid) == False or valid_peer(self._peers.keys(), _peerid) == False): + if not(valid_master(self._network, _peerid)) or not(valid_peer(self._peers.keys(), _peerid)): logger.warning('(%s) PeerError: Peer not in peer-list: %s', self._network, int(h(_peerid), 16)) return diff --git a/ipsc/ipsc_mask.py b/ipsc/ipsc_mask.py index 6418fc2..d9e104b 100644 --- a/ipsc/ipsc_mask.py +++ b/ipsc/ipsc_mask.py @@ -23,7 +23,7 @@ IPSC_TS2_MSK = 0b00000011 # Byte 1 - 0x00 = Unknown # Byte 2 - 0x00 = Unknown # Byte 3 - BIT FLAGS: -# x... .... = CBSK Message +# x... .... = CSBK Message # .x.. .... = Repeater Call Monitoring # ..x. .... = 3rd Party "Console" Application # ...x xxxx = Unknown - default to 0