1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-23 20:18:52 +00:00

Fix digipot compilation (#19731)

This commit is contained in:
Jason Smith 2020-10-14 11:44:03 -07:00 committed by GitHub
parent 9507c49b18
commit 79d51581ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

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;

View File

@ -99,4 +99,6 @@ void DigipotI2C::init() {
set_current(i, pgm_read_float(&digipot_motor_current[i]));
}
DigipotI2C digipot_i2c;
#endif // DIGIPOT_MCP4018

View File

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