aboutsummaryrefslogtreecommitdiffstats
path: root/sw/cal/err.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-11-08 18:11:23 -0500
committerSam Anthony <sam@samanthony.xyz>2025-11-08 18:11:23 -0500
commitc6573ad10a8d96d744324937195cd50bb1442c26 (patch)
tree4d87e7cee19dd1c5fe3bdd9db5e128c605c9ef64 /sw/cal/err.go
parent8f0fc9ba2a8efe870f3584af2c439b2c2fd899e5 (diff)
downloadcan-gauge-interface-c6573ad10a8d96d744324937195cd50bb1442c26.zip
cal: verify signal encoding after writing
Diffstat (limited to 'sw/cal/err.go')
-rw-r--r--sw/cal/err.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/cal/err.go b/sw/cal/err.go
index 26ef5df..4ceb1cc 100644
--- a/sw/cal/err.go
+++ b/sw/cal/err.go
@@ -1,12 +1,17 @@
package main
import (
+ "errors"
"fmt"
"os"
"go.einride.tech/can/pkg/dbc"
)
+var (
+ errWrongId = errors.New("wrong ID")
+)
+
func eprintf(format string, a ...any) {
weprintf(format, a...)
os.Exit(1)