diff options
Diffstat (limited to 'software/main.go')
-rw-r--r-- | software/main.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/software/main.go b/software/main.go index 66fb8a6..48b71e7 100644 --- a/software/main.go +++ b/software/main.go @@ -16,5 +16,13 @@ func main() { log.Fatalf("Require exactly one serial port from STMicroelectronics but %d attached", len(ports)) } - log.Printf("Detected port: %s\n", ports[0]) + log.Printf("Detected serial port: %s\n", ports[0]) + + phy, err := communication.NewPhy(ports[0]) + + log.Println("Starting to print out incoming data from serial port") + err = phy.Cat() + if err != nil { + log.Fatal(err) + } } |