Added more robust code checking (#15)
Co-authored-by: Daan Selen <dselen@systemec.nl>
This commit is contained in:
+4
-2
@@ -199,10 +199,12 @@ async def main():
|
||||
|
||||
if args.group != "":
|
||||
meshbook["group"] = args.group
|
||||
del meshbook["device"]
|
||||
if "device" in meshbook:
|
||||
del meshbook["device"]
|
||||
elif args.device != "":
|
||||
meshbook["device"] = args.device
|
||||
del meshbook["group"]
|
||||
if "group" in meshbook:
|
||||
del meshbook["group"]
|
||||
|
||||
'''
|
||||
The following section mainly displays used variables and first steps of the program to the console.
|
||||
|
||||
Reference in New Issue
Block a user