From 85dc84ab0e8f5bf2fc02ad8881c7a7247bdb492b Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 30 May 2024 18:33:51 +0200 Subject: software: communication: Make receive private --- software/communication/physical.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/software/communication/physical.go b/software/communication/physical.go index e24c574..3f61590 100644 --- a/software/communication/physical.go +++ b/software/communication/physical.go @@ -41,7 +41,7 @@ func newPhysical() (physical, error) { } func (p *physical) start() { - go p.Receive() + go p.receive() } func getStSerials() ([]string, error) { @@ -75,7 +75,7 @@ func openSerial(device string) (serial.Port, error) { return port, nil } -func (p *physical) Receive() { +func (p *physical) receive() { for { buff := make([]byte, 100) n, err := p.port.Read(buff) -- cgit v1.2.3-70-g09d2