diff --git a/rnodeconf/rnodeconf.py b/rnodeconf/rnodeconf.py index c8f6665..32eb541 100755 --- a/rnodeconf/rnodeconf.py +++ b/rnodeconf/rnodeconf.py @@ -1008,7 +1008,7 @@ def main(): print("Bandwidth in Hz:\t", end="") rnode.bandwidth = int(input()) - if args.txp >= 0 and args.txp <= 17: + if args.txp != None and (args.txp >= 0 and args.txp <= 17): rnode.txpower = args.txp else: print("TX Power in dBm:\t", end="") diff --git a/setup.py b/setup.py index e0133bf..cc36141 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open("README.md", "r") as fh: setuptools.setup( name="rnodeconf", - version="0.9.8", + version="0.9.9", author="Mark Qvist", author_email="mark@unsigned.io", description="Configuration Utility for RNode hardware",