Fix bug when txp isn't defined

pull/3/head
Dionysis Grigoropoulos 2023-10-28 23:47:39 +03:00
parent cc84f19fc8
commit a909a3619b
No known key found for this signature in database
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