diff --git a/sungrow.go b/sungrow.go index 6b004be..2b9ba8d 100644 --- a/sungrow.go +++ b/sungrow.go @@ -97,7 +97,7 @@ func (c *sungrowConn) Read(out []byte) (int, error) { pktlen, padlen := int(hdr[2]), int(hdr[3]) bs := c.block.BlockSize() if (pktlen+padlen)%bs != 0 { - return 0, fmt.Errorf("pktlen + padlen = %d + %d = %d, want divisble by %d", pktlen, padlen, pktlen+padlen, bs) + return 0, fmt.Errorf("pktlen + padlen = %d + %d = %d, want divisible by %d", pktlen, padlen, pktlen+padlen, bs) } pkt := make([]byte, pktlen+padlen) if _, err := io.ReadFull(c.Conn, pkt); err != nil {