Commit 1208fcbc authored by Projects's avatar Projects

pulsegen: Accept number of pulses/samples using E notation

parent 616dae19
conv-ttl-blo-gw @ adbbd31b
Subproject commit 103510645fb5ebdffccb1d2ef5894d832d947da5
Subproject commit adbbd31b1af412639786a8478fbeec9b78188dc2
......@@ -262,13 +262,13 @@ if __name__ == '__main__':
if opt in ('-b', '--baud'):
baud = int(arg)
elif opt in ('-c', '--count'):
count = int(arg)
count = int(float(arg))
elif opt in ('-d', '--device'):
device = arg
elif opt in ('-f', '--freq'):
freq = float(arg)
elif opt in ('-s', '--samples'):
samples = int(arg)
samples = int(float(arg))
if samples > 65536:
print('ERROR: Samples number limit is 65536')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment