Transfer.

This commit is contained in:
Andrey Egorov
2024-07-22 20:37:02 +03:00
parent aa6f1b45d1
commit 620c98cbf1
3 changed files with 12 additions and 5 deletions

View File

@ -92,6 +92,7 @@ func (p *atPort) makeReq(msg string) (string, error) {
}
// Read
readLen, err := p.port.Read(p.inputBuf)
log.Println("RAWREAD:", string(p.inputBuf[:readLen]))
if err != nil {
return "", fmt.Errorf("port read: %w", err)
}