diff options
| author | Kevin Wallace <kevin@pentabarf.net> | 2026-03-05 20:17:40 -0800 |
|---|---|---|
| committer | Kevin Wallace <kevin@pentabarf.net> | 2026-03-05 20:17:40 -0800 |
| commit | 5330acd5616184b91bd89cff56c63a5a4342de29 (patch) | |
| tree | 6e56518a8d3c0af43fa9e230c5e657ec48681178 /cmd | |
| parent | add ISOCardReleased (diff) | |
make protocol trace logging optional, default off
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/cvend-ipp/main.go | 2 | ||||
| -rw-r--r-- | cmd/pic32-ipp/main.go | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/cmd/cvend-ipp/main.go b/cmd/cvend-ipp/main.go index ce96732..a985dc6 100644 --- a/cmd/cvend-ipp/main.go +++ b/cmd/cvend-ipp/main.go @@ -8,6 +8,7 @@ import ( "time" "pm3.dev/cvend" + "pm3.dev/ipp" ) var wait = flag.Duration("w", 5*time.Second, "how long to wait for a response") @@ -15,6 +16,7 @@ var follow = flag.Bool("f", false, "don't exit after response") func main() { flag.Parse() + *ipp.Trace = true log.SetFlags(log.Lshortfile | log.Ldate | log.Ltime | log.Lmicroseconds) log.Println("cvend-ipp start") wc := make(chan struct{}, 1) diff --git a/cmd/pic32-ipp/main.go b/cmd/pic32-ipp/main.go index 34a1ec8..c6d3d98 100644 --- a/cmd/pic32-ipp/main.go +++ b/cmd/pic32-ipp/main.go @@ -7,6 +7,7 @@ import ( "strconv" "time" + "pm3.dev/ipp" "pm3.dev/pic32" ) @@ -15,6 +16,7 @@ var follow = flag.Bool("f", false, "don't exit after response") func main() { flag.Parse() + *ipp.Trace = true log.SetFlags(log.Lshortfile | log.Ldate | log.Ltime | log.Lmicroseconds) log.Println("pic32-ipp start") wc := make(chan struct{}, 1) |