Merge pull request #3 from Erethon/master

Fix bug when txp isn't defined
master
markqvist 2023-10-28 23:30:19 +02:00 committed by GitHub
commit 0d521faed0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -540,7 +540,7 @@ def main():
print("Bandwidth in Hz:\t", end=' ')
rnode.bandwidth = int(input())
if args.txp >= 0 and args.txp <= 17:
if args.txp and (args.txp >= 0 and args.txp <= 17):
rnode.txpower = args.txp
else:
rnode.txpower = 0