Diff of /scripts/dbc2c.awk [ac34d1] .. [11e95e]  Maximize  Restore

Switch to side-by-side view

--- a/scripts/dbc2c.awk
+++ b/scripts/dbc2c.awk
@@ -1438,9 +1438,12 @@
 		# TX messages
 		p = 0
 		delete tx
+		delete txname
 		while (obj_ecu_tx[ecu, p]) {
+			txname[obj_msg_name[obj_ecu_tx[ecu, p]]]
 			tx[sprintf("%x", obj_ecu_tx[ecu, p++])]
 		}
+		tpl["txname"] = joinIndex(RS, txname)
 		tpl["tx"] = joinIndex(RS, tx)
 		# RX signals
 		p = 0
@@ -1504,6 +1507,7 @@
 		tpl["comment"] = obj_sig_comment[sig]
 		# Reference the message this signal belongs to
 		tpl["msgid"] = sprintf("%x", obj_sig_msgid[sig])
+		tpl["msgname"] = obj_msg_name[obj_sig_msgid[sig]]
 		# Reference the signal groups this message belongs to
 		i = 0
 		delete grps
@@ -1525,7 +1529,7 @@
 		tpl["sbit"] = obj_sig_sbit[sig]
 		tpl["len"] = obj_sig_len[sig]
 		# Setup/Start
-		tpl["start"] = obj_sig_attr[sig, aSTART]
+		tpl["start"] = 0 + obj_sig_attr[sig, aSTART]
 		# Calc
 		fac = rational(obj_sig_fac[sig], 16)
 		off = rational(obj_sig_off[sig], 16)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks