Commit ea078f74 authored by Arist's avatar Arist

update padding

parent 36315645
......@@ -22,10 +22,9 @@ impl MAX86150 {
let mut cfg = max86150_sensor_config {
sample_buffer_len: DATA_MAX,
ppg_sample_rate: 200,
_padding: [0u8; 10],
};
let stream_id = unsafe { epic_max86150_enable_sensor(&mut cfg) };
let stream_id = unsafe { epic_max86150_enable_sensor(&mut cfg, size_of::<max86150_sensor_config>()) };
if stream_id < 0 {
let error = match -stream_id {
......
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