summaryrefslogtreecommitdiff
path: root/software/communication/interface.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-05-30 18:21:27 +0200
committerxengineering <me@xengineering.eu>2024-05-30 20:06:16 +0200
commita4705ffdb76d412bbc3999877843f886cbd41f4c (patch)
tree6fc2ef15be337b55c523a5ea55f9e323037deed0 /software/communication/interface.go
parent0f62b35cb1a1ff69e8c29285322a251010cf5ee1 (diff)
downloadiot-core-a4705ffdb76d412bbc3999877843f886cbd41f4c.tar
iot-core-a4705ffdb76d412bbc3999877843f886cbd41f4c.tar.zst
iot-core-a4705ffdb76d412bbc3999877843f886cbd41f4c.zip
software: communication: Split setup and start
Diffstat (limited to 'software/communication/interface.go')
-rw-r--r--software/communication/interface.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/software/communication/interface.go b/software/communication/interface.go
index ebd8d6b..d124a48 100644
--- a/software/communication/interface.go
+++ b/software/communication/interface.go
@@ -20,6 +20,10 @@ func NewSerialInterface() (SerialInterface, error) {
return iface, nil
}
+func (i *SerialInterface) Start() {
+ i.phy.start()
+}
+
func (i *SerialInterface) Cat() {
for {
data := <-i.phy.rx