Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
3e5c1d5f
Commit
3e5c1d5f
authored
6 years ago
by
Schorcht
Browse files
Options
Downloads
Patches
Plain Diff
sys/auto_init/saul: VEML6070_NUMOF fix
parent
cef81a10
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sys/auto_init/saul/auto_init_veml6070.c
+5
-4
5 additions, 4 deletions
sys/auto_init/saul/auto_init_veml6070.c
with
5 additions
and
4 deletions
sys/auto_init/saul/auto_init_veml6070.c
+
5
−
4
View file @
3e5c1d5f
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
#ifdef MODULE_VEML6070
#ifdef MODULE_VEML6070
#include
"assert.h"
#include
"log.h"
#include
"log.h"
#include
"saul_reg.h"
#include
"saul_reg.h"
#include
"veml6070.h"
#include
"veml6070.h"
...
@@ -28,17 +29,17 @@
...
@@ -28,17 +29,17 @@
/**
/**
* @brief Define the number of configured sensors
* @brief Define the number of configured sensors
*/
*/
#define VEML6070_NUM
OF
(sizeof(veml6070_params) / sizeof(veml6070_params[0]))
#define VEML6070_NUM (sizeof(veml6070_params) / sizeof(veml6070_params[0]))
/**
/**
* @brief Allocation of memory for device descriptors
* @brief Allocation of memory for device descriptors
*/
*/
static
veml6070_t
veml6070_devs
[
VEML6070_NUM
OF
];
static
veml6070_t
veml6070_devs
[
VEML6070_NUM
];
/**
/**
* @brief Memory for the SAUL registry entries
* @brief Memory for the SAUL registry entries
*/
*/
static
saul_reg_t
saul_entries
[
VEML6070_NUM
OF
];
static
saul_reg_t
saul_entries
[
VEML6070_NUM
];
/**
/**
* @brief Define the number of saul info
* @brief Define the number of saul info
...
@@ -54,7 +55,7 @@ void auto_init_veml6070(void)
...
@@ -54,7 +55,7 @@ void auto_init_veml6070(void)
{
{
assert
(
VEML6070_NUM
==
VEML6070_INFO_NUM
);
assert
(
VEML6070_NUM
==
VEML6070_INFO_NUM
);
for
(
unsigned
i
=
0
;
i
<
VEML6070_NUM
OF
;
i
++
)
{
for
(
unsigned
i
=
0
;
i
<
VEML6070_NUM
;
i
++
)
{
LOG_DEBUG
(
"[auto_init_saul] initializing veml6070 #%u
\n
"
,
i
);
LOG_DEBUG
(
"[auto_init_saul] initializing veml6070 #%u
\n
"
,
i
);
if
(
veml6070_init
(
&
veml6070_devs
[
i
],
if
(
veml6070_init
(
&
veml6070_devs
[
i
],
...
...
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