Skip to content

Commit

Permalink
Merge pull request #14 from HosseinKasaei/master
Browse files Browse the repository at this point in the history
Fixed shutdown & wakeup functions
  • Loading branch information
MishalJasmine authored Nov 29, 2024
2 parents f7d226a + 4023406 commit 795c4dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/max86150.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ static const uint8_t MAX86150_ROLLOVER_DISABLE = 0x00;

static const uint8_t MAX86150_A_FULL_MASK = 0xF0;

static const uint8_t MAX86150_SHUTDOWN_MASK = 0x7F;
static const uint8_t MAX86150_SHUTDOWN = 0x80;
static const uint8_t MAX86150_SHUTDOWN_MASK = 0xFD;
static const uint8_t MAX86150_SHUTDOWN = 0x02;
static const uint8_t MAX86150_WAKEUP = 0x00;

static const uint8_t MAX86150_RESET_MASK = 0xFE;
Expand Down Expand Up @@ -641,4 +641,4 @@ void MAX86150::writeRegister8(uint8_t address, uint8_t reg, uint8_t value) {
_i2cPort->write(reg);
_i2cPort->write(value);
_i2cPort->endTransmission();
}
}

0 comments on commit 795c4dd

Please sign in to comment.