mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
Merge pull request #115 from per1234/fix-MCP4725
MCP4725: Remove erroneous const keyword from parameter
This commit is contained in:
commit
4ddf5f90de
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user