diff --git a/modules/settings.py b/modules/settings.py index b415b16..4446980 100644 --- a/modules/settings.py +++ b/modules/settings.py @@ -41,6 +41,8 @@ interface1_type = config['interface'].get('type', 'serial') port1 = config['interface'].get('port', '') hostname1 = config['interface'].get('hostname', '') mac1 = config['interface'].get('mac', '') +retry_int1 = False +retry_int2 = False # interface2 settings if 'interface2' in config: diff --git a/modules/system.py b/modules/system.py index a801961..94616a5 100644 --- a/modules/system.py +++ b/modules/system.py @@ -422,8 +422,6 @@ async def retry_interface(nodeID=1): elif interface1_type == 'ble': interface1 = meshtastic.ble_interface.BLEInterface(mac1) print(f"{log_timestamp()} System: Interface1 Opened!") - else: - print(f"{log_timestamp()} System: Interface1 already open") except Exception as e: print(f"{log_timestamp()} System: Error opening interface1 on: {e}") @@ -438,8 +436,6 @@ async def retry_interface(nodeID=1): elif interface2_type == 'ble': interface2 = meshtastic.ble_interface.BLEInterface(mac2) print(f"{log_timestamp()} System: Interface2 Opened!") - else: - print(f"{log_timestamp()} System: Interface2 already open") except Exception as e: print(f"{log_timestamp()} System: Error opening interface2: {e}")