Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rust-card10
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arist
rust-card10
Commits
3bbb354a
Commit
3bbb354a
authored
5 years ago
by
Arist
Committed by
Arist Kozhevnikov
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
update padding
parent
0f05b0a0
No related branches found
No related tags found
No related merge requests found
Pipeline
#4521
failed
5 years ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
card10-l0dable/src/max86150.rs
+1
-2
1 addition, 2 deletions
card10-l0dable/src/max86150.rs
with
1 addition
and
2 deletions
card10-l0dable/src/max86150.rs
+
1
−
2
View file @
3bbb354a
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment