From 7a1b198cf416415f926d3765288b4a28eca11aa7 Mon Sep 17 00:00:00 2001 From: Claes Jakobsson Date: Sun, 13 Sep 2015 12:33:35 +0200 Subject: [PATCH] htdp.Data is already an address so don't take address to that address --- host/generic/i2cbus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/generic/i2cbus.go b/host/generic/i2cbus.go index dc8e74c..e416c9e 100644 --- a/host/generic/i2cbus.go +++ b/host/generic/i2cbus.go @@ -223,7 +223,7 @@ func (b *i2cBus) WriteToReg(addr, reg byte, value []byte) error { message.addr = uint16(addr) message.flags = 0 message.len = uint16(len(outbuf)) - message.buf = uintptr(unsafe.Pointer(&hdrp.Data)) + message.buf = uintptr(unsafe.Pointer(hdrp.Data)) var packets i2c_rdwr_ioctl_data