Skip to content

Commit 0d0065e

Browse files
committed
Missed previous commit
1 parent f9b3f21 commit 0d0065e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/ESP32/_nanoCLR/System.Device.I2c/sys_dev_i2c_native_System_Device_I2c_I2cDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ HRESULT Library_sys_dev_i2c_native_System_Device_I2c_I2cDevice::
287287
if (readSize > 0)
288288
{
289289
// grab the pointer to the array by starting and the offset specified in the span
290-
memcpy(readData->GetElement(readOffset), readBuffer, readSize);
290+
memcpy(readData->GetFirstElement(), readBuffer, readSize);
291291
}
292292

293293
result[I2cTransferResult::FIELD___status].SetInteger((CLR_UINT32)I2cTransferStatus_FullTransfer);

0 commit comments

Comments
 (0)