Added more robust code checking (#15)
Co-authored-by: Daan Selen <dselen@systemec.nl>
This commit is contained in:
@@ -199,9 +199,11 @@ async def main():
|
||||
|
||||
if args.group != "":
|
||||
meshbook["group"] = args.group
|
||||
if "device" in meshbook:
|
||||
del meshbook["device"]
|
||||
elif args.device != "":
|
||||
meshbook["device"] = args.device
|
||||
if "group" in meshbook:
|
||||
del meshbook["group"]
|
||||
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user