Browse Source

Fix digipot compilation (#19731)

Jason Smith 4 years ago
parent
commit
79d51581ba
No account linked to committer's email address

+ 1
- 1
Marlin/src/feature/digipot/digipot.h View File

30
   static void set_current(const uint8_t channel, const float current);
30
   static void set_current(const uint8_t channel, const float current);
31
 };
31
 };
32
 
32
 
33
-DigipotI2C digipot_i2c;
33
+extern DigipotI2C digipot_i2c;

+ 2
- 0
Marlin/src/feature/digipot/digipot_mcp4018.cpp View File

99
     set_current(i, pgm_read_float(&digipot_motor_current[i]));
99
     set_current(i, pgm_read_float(&digipot_motor_current[i]));
100
 }
100
 }
101
 
101
 
102
+DigipotI2C digipot_i2c;
103
+
102
 #endif // DIGIPOT_MCP4018
104
 #endif // DIGIPOT_MCP4018

+ 2
- 0
Marlin/src/feature/digipot/digipot_mcp4451.cpp View File

95
     set_current(i, pgm_read_float(&digipot_motor_current[i]));
95
     set_current(i, pgm_read_float(&digipot_motor_current[i]));
96
 }
96
 }
97
 
97
 
98
+DigipotI2C digipot_i2c;
99
+
98
 #endif // DIGIPOT_MCP4451
100
 #endif // DIGIPOT_MCP4451

Loading…
Cancel
Save