Fix formatting

master
Diego Barrios Romero 2025-01-02 08:31:08 +01:00
parent 03e0d9aad9
commit b086f3086e
3 changed files with 5 additions and 6 deletions

View File

@ -2,7 +2,7 @@
use crate::interface::{SpiInterface, WriteData}; use crate::interface::{SpiInterface, WriteData};
use crate::{ic, BitFlags, Ds323x, Error, Register, TempConvRate, CONTROL_POR_VALUE}; use crate::{ic, BitFlags, Ds323x, Error, Register, TempConvRate, CONTROL_POR_VALUE};
use core::marker::PhantomData; use core::marker::PhantomData;
use embedded_hal::{spi, digital::OutputPin}; use embedded_hal::{digital::OutputPin, spi};
impl<SPI, CS, CommE, PinE> Ds323x<SpiInterface<SPI, CS>, ic::DS3234> impl<SPI, CS, CommE, PinE> Ds323x<SpiInterface<SPI, CS>, ic::DS3234>
where where

View File

@ -1,10 +1,7 @@
//! I2C/SPI interfaces //! I2C/SPI interfaces
use crate::{private, Error, DEVICE_ADDRESS}; use crate::{private, Error, DEVICE_ADDRESS};
use embedded_hal::{ use embedded_hal::{digital::OutputPin, i2c, spi};
i2c, spi,
digital::OutputPin,
};
/// I2C interface /// I2C interface
#[derive(Debug, Default)] #[derive(Debug, Default)]

View File

@ -98,7 +98,9 @@ pub fn destroy_ds3232(dev: Ds323x<interface::I2cInterface<I2cMock>, ic::DS3232>)
dev.destroy_ds3232().done(); dev.destroy_ds3232().done();
} }
pub fn destroy_ds3234(dev: Ds323x<interface::SpiInterface<SpiMock<u8>, DummyOutputPin>, ic::DS3234>) { pub fn destroy_ds3234(
dev: Ds323x<interface::SpiInterface<SpiMock<u8>, DummyOutputPin>, ic::DS3234>,
) {
dev.destroy_ds3234().0.done(); dev.destroy_ds3234().0.done();
} }