Browse Source

Fix digipot compilation (#19731)

vanilla_fb_2.0.x
Jason Smith 4 years ago
committed by GitHub
parent
commit
79d51581ba
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Marlin/src/feature/digipot/digipot.h
  2. 2
      Marlin/src/feature/digipot/digipot_mcp4018.cpp
  3. 2
      Marlin/src/feature/digipot/digipot_mcp4451.cpp

2
Marlin/src/feature/digipot/digipot.h

@ -30,4 +30,4 @@ public:
static void set_current(const uint8_t channel, const float current); static void set_current(const uint8_t channel, const float current);
}; };
DigipotI2C digipot_i2c; extern DigipotI2C digipot_i2c;

2
Marlin/src/feature/digipot/digipot_mcp4018.cpp

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

2
Marlin/src/feature/digipot/digipot_mcp4451.cpp

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

Loading…
Cancel
Save