MoreClenup

on https://github.com/SpudGunMan/meshing-around/issues/26
This commit is contained in:
SpudGunMan
2024-08-02 02:57:56 -07:00
parent 43c0b12887
commit faa8a722d4
2 changed files with 2 additions and 4 deletions
+2
View File
@@ -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:
-4
View File
@@ -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}")