diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-11-08 18:11:23 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-11-08 18:11:23 -0500 |
| commit | c6573ad10a8d96d744324937195cd50bb1442c26 (patch) | |
| tree | 4d87e7cee19dd1c5fe3bdd9db5e128c605c9ef64 /sw/cal/err.go | |
| parent | 8f0fc9ba2a8efe870f3584af2c439b2c2fd899e5 (diff) | |
| download | can-gauge-interface-c6573ad10a8d96d744324937195cd50bb1442c26.zip | |
cal: verify signal encoding after writing
Diffstat (limited to 'sw/cal/err.go')
| -rw-r--r-- | sw/cal/err.go | 5 |
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) |