From a4705ffdb76d412bbc3999877843f886cbd41f4c Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 30 May 2024 18:21:27 +0200 Subject: software: communication: Split setup and start --- software/communication/physical.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'software/communication/physical.go') diff --git a/software/communication/physical.go b/software/communication/physical.go index 0ba3690..e24c574 100644 --- a/software/communication/physical.go +++ b/software/communication/physical.go @@ -36,11 +36,14 @@ func newPhysical() (physical, error) { } p.rx = make(chan byte) - go p.Receive() return p, nil } +func (p *physical) start() { + go p.Receive() +} + func getStSerials() ([]string, error) { retval := make([]string, 0) -- cgit v1.2.3-70-g09d2