diff --git a/sungrow.go b/sungrow.go index b4cef28..6b004be 100644 --- a/sungrow.go +++ b/sungrow.go @@ -56,8 +56,7 @@ func (c *sungrowConn) Write(msg []byte) (int, error) { c.mu.Lock() defer c.mu.Unlock() c.txid = binary.BigEndian.Uint16(msg[:2]) - - //c.fifo.Truncate(0) + c.fifo.Truncate(0) bs := c.block.BlockSize() padlen := bs - (len(msg) % bs)