Merge pull request #660 from betrusted-io/sam.i2c-fix

add back in the reading part of `i2c_read`
This commit is contained in:
bunnie 2025-06-10 17:19:59 +08:00 committed by GitHub
commit 63b18ec42d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,6 +49,7 @@ impl I2cApi for I2c {
if result.transactions[0].result == I2cResult::InternalError {
Err(xous::Error::InternalError)
} else {
buf.copy_from_slice(&result.transactions[0].data);
Ok(result.transactions[0].result)
}
}