Minor Clean-Up

This commit is contained in:
Cort Buffington 2013-12-06 07:00:40 -06:00
parent 0291bbbd9d
commit cea2cee20e
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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