mirror of https://github.com/kidoman/embd
htdp.Data is already an address so don't take address to that address
This commit is contained in:
parent
ae869cce5b
commit
7a1b198cf4
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue