aboutsummaryrefslogtreecommitdiffstats
path: root/sw/cal/err.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-11-07 19:10:23 -0500
committerSam Anthony <sam@samanthony.xyz>2025-11-07 19:10:23 -0500
commitc43588e172917783843133eb0061bf0d118ae5d5 (patch)
treec748fecb1b530422c57dae449064cd8a5beb6c6a /sw/cal/err.go
parent688972df9daa1f80d24feff5c056ab3a66c4eee9 (diff)
downloadcan-gauge-interface-c43588e172917783843133eb0061bf0d118ae5d5.zip
cal: transmit table to CAN bus
Diffstat (limited to 'sw/cal/err.go')
-rw-r--r--sw/cal/err.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/cal/err.go b/sw/cal/err.go
index 452e5f0..26ef5df 100644
--- a/sw/cal/err.go
+++ b/sw/cal/err.go
@@ -32,3 +32,11 @@ type ErrNoSig struct {
func (e ErrNoSig) Error() string {
return fmt.Sprintf("%s: no such signal '%s'", e.filename, e.signal)
}
+
+type ErrDupKey struct {
+ key int32
+}
+
+func (e ErrDupKey) Error() string {
+ return fmt.Sprintf("duplicate key %d", e.key)
+}