Commit 14ad036f authored by Ivan Tyagov's avatar Ivan Tyagov

Improve report.

parent bd7df765
...@@ -42,8 +42,9 @@ for line in lines_list[1:]: ...@@ -42,8 +42,9 @@ for line in lines_list[1:]:
else: else:
delta = timestamp - last_channel0_timestamp delta = timestamp - last_channel0_timestamp
last_channel0_timestamp = timestamp last_channel0_timestamp = timestamp
# but always add delta # but always add delta if not 0
timestamp_channel0_delta_list.append(delta) if delta > 0:
timestamp_channel0_delta_list.append(delta)
if channel1 != last_channel1_value: if channel1 != last_channel1_value:
# calculate delta # calculate delta
...@@ -53,8 +54,9 @@ for line in lines_list[1:]: ...@@ -53,8 +54,9 @@ for line in lines_list[1:]:
else: else:
delta = timestamp - last_channel1_timestamp delta = timestamp - last_channel1_timestamp
last_channel1_timestamp = timestamp last_channel1_timestamp = timestamp
# but always add delta # but always add delta if not 0
timestamp_channel1_delta_list.append(delta) if delta > 0:
timestamp_channel1_delta_list.append(delta)
# update for next cycle # update for next cycle
last_channel0_value = channel0 last_channel0_value = channel0
......
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