From e575186fc3c0b818ff1e51c4f29170683ec14510 Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Thu, 1 Aug 2013 15:45:57 -0500 Subject: [PATCH] Work on improving peer list Need to "update" the peer list instead of wipe it out and write a new one. This is just started, so not implemented yet. --- ipsc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ipsc.py b/ipsc.py index 8f19b21..aab7230 100644 --- a/ipsc.py +++ b/ipsc.py @@ -119,6 +119,10 @@ def process_peer_list(_data, _network): # if not in the current list, add it... # if in the current list, but not in what we received, remove it... # then take out the he ugliness that is below here (and up above where it deletes the whol list) +# for radio_id in NETWORK[_network]['PEERS']: +# print(binascii.b2a_hex(radio_id['RADIO_ID'])) +# if hex_radio_id in radio_id['RADIO_ID']: +# print('---->', radio_id) NETWORK[_network]['PEERS'].append({ 'RADIO_ID': hex_radio_id,