1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 13:56:24 +00:00

Init DAC_DISABLE_PIN in dac_init

This commit is contained in:
Scott Lahteine 2016-06-27 12:38:00 -07:00
parent 6c60869409
commit ddb386c139

View File

@ -51,6 +51,11 @@
const uint8_t dac_order[NUM_AXIS] = DAC_STEPPER_ORDER;
int dac_init() {
#if PIN_EXISTS(DAC_DISABLE)
pinMode(DAC_DISABLE_PIN, OUTPUT);
digitalWrite(DAC_DISABLE_PIN, LOW); // set pin low to enable DAC
#endif
mcp4728_init();
if (mcp4728_simpleCommand(RESET)) return -1;