From 182fe4f93b284b59c473091a1be3c235ba4c3053 Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Thu, 8 May 2014 08:29:57 -0500 Subject: [PATCH] Work on Master Support --- dmrlink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmrlink.py b/dmrlink.py index b94736c..9c8f8bf 100755 --- a/dmrlink.py +++ b/dmrlink.py @@ -432,7 +432,7 @@ def process_peer_list(_data, _network): _peer_list_length = int(h(_data[5:7]), 16) # Record the number of peers in the data structure... we'll use it later (11 bytes per peer entry) NETWORK[_network]['LOCAL']['NUM_PEERS'] = _peer_list_length/11 - logger.info('(%s) Peer List Received from Master: %s peers in this IPSC', _network, _peer_list_length/11) + logger.info('(%s) Peer List Received from Master: %s peers in this IPSC', _network, NETWORK[_network]['LOCAL']['NUM_PEERS']) # Iterate each peer entry in the peer list. Skip the header, then pull the next peer, the next, etc. for i in range(7, _peer_list_length +7, 11):