htdp.Data is already an address so don't take address to that address

This commit is contained in:
Claes Jakobsson 2015-09-13 12:33:35 +02:00
parent ae869cce5b
commit 7a1b198cf4
1 changed files with 1 additions and 1 deletions

View File

@ -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