Skip to content

Commit

Permalink
drivers/sen5x: Moved a #define into its right place.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Prigoshij committed May 21, 2024
1 parent 8f28e6b commit 38e7390
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/saul/init_devs/auto_init_sen5x.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
#include "sen5x.h"
#include "sen5x_params.h"

/**
* @brief Define the number of configured sensors
*/
#define SEN5X_NUM ARRAY_SIZE(sen5x_params)

/**
* @brief Allocation of memory for device descriptors
*/
Expand Down
5 changes: 5 additions & 0 deletions drivers/sen5x/include/sen5x_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ static const saul_reg_info_t sen5x_saul_info[] =
SEN5X_SAUL_INFO
};

/**
* @brief Get the number of configured SCD30 devices
*/

#define SEN5X_NUM ARRAY_SIZE(sen5x_params)

#ifdef __cplusplus
}
Expand Down

0 comments on commit 38e7390

Please sign in to comment.