summaryrefslogtreecommitdiff
path: root/software/main.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-05-30 17:37:44 +0200
committerxengineering <me@xengineering.eu>2024-05-30 17:37:44 +0200
commit0f62b35cb1a1ff69e8c29285322a251010cf5ee1 (patch)
treed4f37b86a7c9d628b204d087fa47bd4a0c21fa2d /software/main.go
parent034c8209f6e6f17bf5b6f265e2a3ef58f05b2c80 (diff)
downloadiot-core-0f62b35cb1a1ff69e8c29285322a251010cf5ee1.tar
iot-core-0f62b35cb1a1ff69e8c29285322a251010cf5ee1.tar.zst
iot-core-0f62b35cb1a1ff69e8c29285322a251010cf5ee1.zip
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
Diffstat (limited to 'software/main.go')
-rw-r--r--software/main.go5
1 files changed, 1 insertions, 4 deletions
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()
}