mirror of https://github.com/eldruin/ds323x-rs
Fix formatting
parent
03e0d9aad9
commit
b086f3086e
|
@ -2,7 +2,7 @@
|
|||
use crate::interface::{SpiInterface, WriteData};
|
||||
use crate::{ic, BitFlags, Ds323x, Error, Register, TempConvRate, CONTROL_POR_VALUE};
|
||||
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>
|
||||
where
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
//! I2C/SPI interfaces
|
||||
|
||||
use crate::{private, Error, DEVICE_ADDRESS};
|
||||
use embedded_hal::{
|
||||
i2c, spi,
|
||||
digital::OutputPin,
|
||||
};
|
||||
use embedded_hal::{digital::OutputPin, i2c, spi};
|
||||
|
||||
/// I2C interface
|
||||
#[derive(Debug, Default)]
|
||||
|
|
|
@ -98,7 +98,9 @@ pub fn destroy_ds3232(dev: Ds323x<interface::I2cInterface<I2cMock>, ic::DS3232>)
|
|||
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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue