cleanup
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
use embedded_hal::i2c::{ErrorKind, ErrorType, I2c, Operation, SevenBitAddress};
|
||||
use log::trace;
|
||||
use std::fmt::{Display, Formatter};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct SimMcp23017 {}
|
||||
|
||||
impl SimMcp23017 {
|
||||
pub fn new() -> Self {
|
||||
trace!("SimMcp23017::new()");
|
||||
Self {}
|
||||
}
|
||||
}
|
||||
@@ -32,6 +35,7 @@ impl ErrorType for SimMcp23017 {
|
||||
|
||||
impl I2c for SimMcp23017 {
|
||||
fn transaction(&mut self, _address: SevenBitAddress, operations: &mut [Operation<'_>]) -> Result<(), Self::Error> {
|
||||
trace!("SimMcp23017::transaction(self: {self:?}, _address: {_address}, operations: {operations:?})");
|
||||
for operation in operations {
|
||||
match operation {
|
||||
Operation::Write(_write_buffer) => {
|
||||
|
||||
Reference in New Issue
Block a user