Skip to content

Commit 63b18ec

Browse files
authored
Merge pull request #660 from betrusted-io/sam.i2c-fix
add back in the reading part of `i2c_read`
2 parents 0e1cebf + c9116cf commit 63b18ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/cram-hal-service/src/i2c_lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ impl I2cApi for I2c {
4949
if result.transactions[0].result == I2cResult::InternalError {
5050
Err(xous::Error::InternalError)
5151
} else {
52+
buf.copy_from_slice(&result.transactions[0].data);
5253
Ok(result.transactions[0].result)
5354
}
5455
}

0 commit comments

Comments
 (0)