urtps templates: minor cleanup

This commit is contained in:
TSC21
2019-07-26 11:12:26 +01:00
committed by Beat Küng
parent 11a28665b7
commit eb951ede6a
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ import gencpp
from px_generate_uorb_topic_helper import * # this is in Tools/
from px_generate_uorb_topic_files import MsgScope # this is in Tools/
topic_names = [s.short_name for idx, s in enumerate(spec)]
topic_names = [s.short_name for s in spec]
send_topics = [(alias[idx] if alias[idx] else s.short_name) for idx, s in enumerate(spec) if scope[idx] == MsgScope.SEND]
send_base_types = [s.short_name for idx, s in enumerate(spec) if scope[idx] == MsgScope.SEND]
recv_topics = [(alias[idx] if alias[idx] else s.short_name) for idx, s in enumerate(spec) if scope[idx] == MsgScope.RECEIVE]