Skip to content

Commit

Permalink
Fix mcp4728_setVref_all as followup to MarlinFirmware#4967
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored and Sebastianv650 committed Oct 15, 2016
1 parent 543bbe0 commit d4cd29f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/dac_mcp4728.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ uint8_t mcp4728_eepromWrite() {
*/
uint8_t mcp4728_setVref_all(uint8_t value) {
Wire.beginTransmission(DAC_DEV_ADDRESS);
Wire.write(GAINWRITE | (value ? 0x0F : 0x00));
Wire.write(VREFWRITE | (value ? 0x0F : 0x00));
return Wire.endTransmission();
}
/**
Expand Down

0 comments on commit d4cd29f

Please sign in to comment.