Fix bug when txp isn't defined
parent
cc84f19fc8
commit
a909a3619b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue