Fix digipot compilation (#19731)

This commit is contained in:
Jason Smith authored and Scott Lahteine committed 2021-04-29 08:45:03 -05:00
1 parent 2004080c9d
commit 3e4d9aa9bb
3 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -30,4 +30,4 @@ public:
static void set_current(const uint8_t channel, const float current);
};
DigipotI2C digipot_i2c;
extern DigipotI2C digipot_i2c;
@@ -99,4 +99,6 @@ void DigipotI2C::init() {
set_current(i, pgm_read_float(&digipot_motor_current[i]));
}
DigipotI2C digipot_i2c;
#endif // DIGIPOT_MCP4018
@@ -95,4 +95,6 @@ void DigipotI2C::init() {
set_current(i, pgm_read_float(&digipot_motor_current[i]));
}
DigipotI2C digipot_i2c;
#endif // DIGIPOT_MCP4451