Skip to content

Commit

Permalink
drivers/sps30 : Add CONFIG_
Browse files Browse the repository at this point in the history
Add CONFIG_ prefix to SPS30_ERROR_RETRY
  • Loading branch information
akshaim committed Apr 26, 2020
1 parent bb1ff1f commit c7611bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/include/sps30.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ typedef enum {
* suboptimal wiring.
*
*/
#ifndef SPS30_ERROR_RETRY
#define SPS30_ERROR_RETRY (500U)
#ifndef CONFIG_SPS30_ERROR_RETRY
#define CONFIG_SPS30_ERROR_RETRY (500U)
#endif
/** @} */

Expand Down
2 changes: 1 addition & 1 deletion drivers/sps30/sps30.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ static int _rx_tx_data(const sps30_t *dev, uint16_t ptr_addr,
uint8_t *data, size_t len, bool read)
{
int res = 0;
unsigned retr = SPS30_ERROR_RETRY;
unsigned retr = CONFIG_SPS30_ERROR_RETRY;

if (i2c_acquire(dev->p.i2c_dev) != 0) {
LOG_ERROR("could not acquire I2C bus %d\n", dev->p.i2c_dev);
Expand Down

0 comments on commit c7611bd

Please sign in to comment.