From ecddcc4498945a1b0b46c56ffbd8c8936c789bf7 Mon Sep 17 00:00:00 2001 From: Ashwin Date: Thu, 15 Dec 2022 21:00:55 +0530 Subject: [PATCH] Fixed build errors on ESP32 --- src/max86150.cpp | 4 ++-- src/max86150.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/max86150.cpp b/src/max86150.cpp index 0c39578..6477915 100644 --- a/src/max86150.cpp +++ b/src/max86150.cpp @@ -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): @@ -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); diff --git a/src/max86150.h b/src/max86150.h index 5dc54fd..d3cb8f0 100644 --- a/src/max86150.h +++ b/src/max86150.h @@ -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