Skip to content

Commit

Permalink
Fixed build errors on ESP32
Browse files Browse the repository at this point in the history
  • Loading branch information
protocentralashwin committed Dec 15, 2022
1 parent c84d524 commit ecddcc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/max86150.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ void MAX86150::setProximityThreshold(uint8_t threshMSB)
//Assigning a SLOT_RED_PILOT will ??
void MAX86150::enableSlot(uint8_t slotNumber, uint8_t device)
{
uint8_t originalContents;
//uint8_t originalContents;

switch (slotNumber) {
case (1):
Expand Down Expand Up @@ -622,7 +622,7 @@ void MAX86150::bitMask(uint8_t reg, uint8_t mask, uint8_t thing)

uint8_t MAX86150::readRegister8(uint8_t address, uint8_t reg) {

uint8_t tempData = 0;
//uint8_t tempData = 0;
_i2cPort->beginTransmission(address);
_i2cPort->write(reg);
_i2cPort->endTransmission(false);
Expand Down
2 changes: 1 addition & 1 deletion src/max86150.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class MAX86150 {

private:
TwoWire *_i2cPort; //The generic connection to user's chosen I2C hardware
uint8_t _i2caddr;
int _i2caddr;

//activeLEDs is the number of channels turned on, and can be 1 to 3. 2 is common for Red+IR.
byte activeDevices; //Gets set during setup. Allows check() to calculate how many bytes to read from FIFO
Expand Down

0 comments on commit ecddcc4

Please sign in to comment.