Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MCP4725: Remove erroneous const keyword from parameter #115

Merged
merged 1 commit into from
Oct 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libraries/MCP4725/MCP4725.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion libraries/MCP4725/MCP4725.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class MCP4725
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

Expand Down