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,4 +30,4 @@ public:
30 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,4 +99,6 @@ void DigipotI2C::init() {
99 99
     set_current(i, pgm_read_float(&digipot_motor_current[i]));
100 100
 }
101 101
 
102
+DigipotI2C digipot_i2c;
103
+
102 104
 #endif // DIGIPOT_MCP4018

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

@@ -95,4 +95,6 @@ void DigipotI2C::init() {
95 95
     set_current(i, pgm_read_float(&digipot_motor_current[i]));
96 96
 }
97 97
 
98
+DigipotI2C digipot_i2c;
99
+
98 100
 #endif // DIGIPOT_MCP4451

Loading…
Cancel
Save