From 2524822e8067c3f27e6ada1aab1045d7b3f97e85 Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Mon, 27 Jul 2015 20:10:35 -0500 Subject: [PATCH] added null reporting loop this makes importing consistent for applications in case there is no reporting configured. --- dmrlink.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dmrlink.py b/dmrlink.py index a1cafeb..65c5ced 100755 --- a/dmrlink.py +++ b/dmrlink.py @@ -613,6 +613,10 @@ elif REPORTS['REPORT_NETWORKS'] == 'PRINT': print_master(NETWORK) print_peer_list(NETWORK) +else: + def reporting_loop(): + logger.debug('Periodic Reporting Loop Started (NULL)') + # Shut ourselves down gracefully with the IPSC peers. #