From 0f62b35cb1a1ff69e8c29285322a251010cf5ee1 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 30 May 2024 17:37:44 +0200 Subject: software: communication: Use Go channels Go channels help to decouple the communication layers defined by the OSI model [1]. The physical layer can be abstracted by an RX and TX byte channel and the data link layer by two frame channels. [1]: https://en.wikipedia.org/wiki/OSI_model --- software/main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'software/main.go') diff --git a/software/main.go b/software/main.go index d0ca2cd..0a6b590 100644 --- a/software/main.go +++ b/software/main.go @@ -12,8 +12,5 @@ func main() { log.Fatal(err) } - err = iface.Cat() - if err != nil { - log.Fatal(err) - } + iface.Cat() } -- cgit v1.2.3-70-g09d2