From 9fbf73c1e97f310557cd0e000ceb9319fd226718 Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Wed, 6 Jan 2021 21:39:43 +1100 Subject: [PATCH] is the truncate really necessary? --- sungrow.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sungrow.go b/sungrow.go index 7f0f060..3e4f212 100644 --- a/sungrow.go +++ b/sungrow.go @@ -57,7 +57,7 @@ func (c *sungrowConn) Write(msg []byte) (int, error) { 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)