Browse Source

Fix mcp4728_setVref_all as followup to #4967

pull/1/head
Scott Lahteine 8 years ago
committed by GitHub
parent
commit
4ec2d459e6
  1. 2
      Marlin/dac_mcp4728.cpp

2
Marlin/dac_mcp4728.cpp

@ -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();
}
/**

Loading…
Cancel
Save