Merge pull request #115 from per1234/fix-MCP4725

MCP4725: Remove erroneous const keyword from parameter
This commit is contained in:
Rob Tillaart 2018-10-24 16:29:40 +02:00 committed by GitHub
commit 4ddf5f90de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -187,7 +187,7 @@ bool MCP4725::RDY()
// PAGE 19 DATASHEET
// reg = MCP4725_DAC | MCP4725_EEPROM
int MCP4725::writeRegisterMode(const uint16_t value, const uint8_t reg)
int MCP4725::writeRegisterMode(const uint16_t value, uint8_t reg)
{
uint8_t h = (value / 16);
uint8_t l = (value & 0x0F) << 4;

View File

@ -82,7 +82,7 @@ private:
int writeFastMode(const uint16_t value);
#ifdef MCP4725_EXTENDED
int writeRegisterMode(const uint16_t value, const uint8_t reg);
int writeRegisterMode(const uint16_t value, uint8_t reg);
uint8_t readRegister(uint8_t* buffer, const uint8_t length);
#endif