diff options
author | xengineering <me@xengineering.eu> | 2024-05-30 18:33:51 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-05-30 20:06:23 +0200 |
commit | 85dc84ab0e8f5bf2fc02ad8881c7a7247bdb492b (patch) | |
tree | 79eae844469a4e1a7248a827ba46e3a417684704 | |
parent | a4705ffdb76d412bbc3999877843f886cbd41f4c (diff) | |
download | iot-core-85dc84ab0e8f5bf2fc02ad8881c7a7247bdb492b.tar iot-core-85dc84ab0e8f5bf2fc02ad8881c7a7247bdb492b.tar.zst iot-core-85dc84ab0e8f5bf2fc02ad8881c7a7247bdb492b.zip |
software: communication: Make receive private
-rw-r--r-- | software/communication/physical.go | 4 |
1 files 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) |