Skip to content

Commit 2514e7c

Browse files
authored
Merge pull request #7 from jshiv/support_long_signal_names
Support Long Signal Names
2 parents 623b114 + eb9bd02 commit 2514e7c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

internal/generate/compile.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ func (c *compiler) addMetadata() {
173173
if def.AttributeName == "GenSigStartValue" {
174174
sig.DefaultValue = int(def.IntValue)
175175
}
176+
if def.AttributeName == "SystemSignalLongSymbol" {
177+
sig.LongName = def.StringValue
178+
}
176179
}
177180
}
178181
}

pkg/descriptor/signal.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ import (
88

99
// Signal describes a CAN signal.
1010
type Signal struct {
11-
// Description of the signal.
11+
// Name of the signal.
1212
Name string
13+
// LongName of the signal.
14+
LongName string
1315
// Start bit.
1416
Start uint16
1517
// Length in bits.

0 commit comments

Comments
 (0)