Allow 0s as None
This commit is contained in:
parent
47d76919fc
commit
90256eb468
@ -83,6 +83,9 @@ def measure(
|
|||||||
vm_dev.reset(True)
|
vm_dev.reset(True)
|
||||||
if use_buffer:
|
if use_buffer:
|
||||||
vm_dev.buffer_measure(delta_t, verbose=True)
|
vm_dev.buffer_measure(delta_t, verbose=True)
|
||||||
|
# allow 0 instead of None
|
||||||
|
if max_measurements == 0: max_measurements = None
|
||||||
|
if flush_after == 0: flush_after = None
|
||||||
try:
|
try:
|
||||||
i = 0
|
i = 0
|
||||||
led_val = led_script.start()
|
led_val = led_script.start()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user