Skip to content
Snippets Groups Projects
Commit 84c8a998 authored by Arist's avatar Arist
Browse files

apply fmt

parent 3bbb354a
No related branches found
No related tags found
No related merge requests found
Pipeline #4522 failed
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
mod os; mod os;
pub use os::*; pub use os::*;
mod display; mod display;
pub use display::{Color, Display, Font, FillStyle, LineStyle}; pub use display::{Color, Display, FillStyle, Font, LineStyle};
mod buttons; mod buttons;
pub mod framebuffer; pub mod framebuffer;
pub use buttons::Buttons; pub use buttons::Buttons;
......
...@@ -4,11 +4,7 @@ pub struct MAX86150 { ...@@ -4,11 +4,7 @@ pub struct MAX86150 {
stream_id: i32, stream_id: i32,
} }
use core::{ use core::{mem::size_of, mem::MaybeUninit};
mem::size_of,
// fmt::Write,
mem::MaybeUninit,
};
use card10_sys::*; use card10_sys::*;
...@@ -24,7 +20,8 @@ impl MAX86150 { ...@@ -24,7 +20,8 @@ impl MAX86150 {
ppg_sample_rate: 200, 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 { if stream_id < 0 {
let error = match -stream_id { let error = match -stream_id {
...@@ -57,7 +54,6 @@ impl MAX86150 { ...@@ -57,7 +54,6 @@ impl MAX86150 {
errno::EBUSY => Error::CouldNotAcquireLock, errno::EBUSY => Error::CouldNotAcquireLock,
_ => Error::Unknown(packet_count), _ => Error::Unknown(packet_count),
}; };
// writeln!(crate::UART, "error: {}\r", packet_count).ok();
return Err(error); return Err(error);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment