Skip to content
Snippets Groups Projects
Commit 3bbb354a authored by Arist's avatar Arist Committed by Arist Kozhevnikov
Browse files

update padding

parent 0f05b0a0
No related branches found
No related tags found
No related merge requests found
Pipeline #4521 failed
...@@ -22,10 +22,9 @@ impl MAX86150 { ...@@ -22,10 +22,9 @@ impl MAX86150 {
let mut cfg = max86150_sensor_config { let mut cfg = max86150_sensor_config {
sample_buffer_len: DATA_MAX, sample_buffer_len: DATA_MAX,
ppg_sample_rate: 200, 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 { if stream_id < 0 {
let error = match -stream_id { let error = match -stream_id {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment