Commit 84c8a998 authored by Arist's avatar Arist

apply fmt

parent 3bbb354a
Pipeline #4522 failed with stage
in 13 minutes and 19 seconds
......@@ -4,7 +4,7 @@
mod os;
pub use os::*;
mod display;
pub use display::{Color, Display, Font, FillStyle, LineStyle};
pub use display::{Color, Display, FillStyle, Font, LineStyle};
mod buttons;
pub mod framebuffer;
pub use buttons::Buttons;
......
......@@ -4,11 +4,7 @@ pub struct MAX86150 {
stream_id: i32,
}
use core::{
mem::size_of,
// fmt::Write,
mem::MaybeUninit,
};
use core::{mem::size_of, mem::MaybeUninit};
use card10_sys::*;
......@@ -24,7 +20,8 @@ impl MAX86150 {
ppg_sample_rate: 200,
};
let stream_id = unsafe { epic_max86150_enable_sensor(&mut cfg, size_of::<max86150_sensor_config>()) };
let stream_id =
unsafe { epic_max86150_enable_sensor(&mut cfg, size_of::<max86150_sensor_config>()) };
if stream_id < 0 {
let error = match -stream_id {
......@@ -57,7 +54,6 @@ impl MAX86150 {
errno::EBUSY => Error::CouldNotAcquireLock,
_ => Error::Unknown(packet_count),
};
// writeln!(crate::UART, "error: {}\r", packet_count).ok();
return Err(error);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment