Skip to content

Commit 8ff67b6

Browse files
Merge pull request #60 from FrameworkComputer/i2c-trace
ccgx: Add i2c log for port and address
2 parents 9f9df49 + 4942e1c commit 8ff67b6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

framework_lib/src/ccgx/device.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,11 @@ impl PdController {
181181
}
182182

183183
fn i2c_read(&self, addr: u16, len: u16) -> EcResult<EcI2cPassthruResponse> {
184+
trace!(
185+
"I2C passthrough from I2C Port {} to I2C Addr {}",
186+
self.port.i2c_port().unwrap(),
187+
self.port.i2c_address()
188+
);
184189
trace!("i2c_read(addr: {}, len: {})", addr, len);
185190
if usize::from(len) > MAX_I2C_CHUNK {
186191
return EcResult::Err(EcError::DeviceError(format!(

0 commit comments

Comments
 (0)