forked from M-Labs/artiq
1
0
Fork 0

coredevice/analyzer: update rtio_slack on output messages only

This commit is contained in:
Sebastien Bourdeauducq 2015-12-26 17:47:08 +08:00
parent b931096ec3
commit 2b70fa14a6
1 changed files with 1 additions and 2 deletions

View File

@ -312,7 +312,6 @@ def decoded_dump_to_vcd(fileobj, devices, dump):
vcd_manager.set_time( vcd_manager.set_time(
get_message_time(message) - start_time) get_message_time(message) - start_time)
channel_handlers[message.channel].process_message(message) channel_handlers[message.channel].process_message(message)
if (hasattr(message, "rtio_counter") if isinstance(message, OutputMessage):
and hasattr(message, "timestamp")):
slack.set_value_double( slack.set_value_double(
(message.timestamp - message.rtio_counter)*ref_period) (message.timestamp - message.rtio_counter)*ref_period)