Skip to content

Commit

Permalink
Added begin() in reset()
Browse files Browse the repository at this point in the history
  • Loading branch information
yanbec committed Jun 22, 2018
1 parent 2c792e9 commit 0ba0e12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/BME280.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,11 @@ bool BME280::begin
}

/****************************************************************/
void BME280::reset()
bool BME280::reset()
{
WriteRegister(RESET_ADDR, RESET_VALUE);
delay(2); //max. startup time according to datasheet
return(begin());
}

/****************************************************************/
Expand Down
2 changes: 1 addition & 1 deletion src/BME280.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class BME280

////////////////////////////////////////////////////////////////
/// Method to restart BME280. begin() needs to beed called afterwards
void reset();
bool reset();

/*****************************************************************/
/* ENVIRONMENTAL FUNCTIONS */
Expand Down

0 comments on commit 0ba0e12

Please sign in to comment.