Browse Source

Function decl. in headers don't need "extern"

pull/1/head
Scott Lahteine 9 years ago
parent
commit
4041508ffb
  1. 15
      Marlin/Marlin.h
  2. 5
      Marlin/Marlin_main.cpp

15
Marlin/Marlin.h

@ -278,10 +278,10 @@ extern bool axis_known_position[3]; // axis[n].is_known
extern bool axis_homed[3]; // axis[n].is_homed
// GCode support for external objects
extern bool code_seen(char);
extern float code_value();
extern long code_value_long();
extern int16_t code_value_short();
bool code_seen(char);
float code_value();
long code_value_long();
int16_t code_value_short();
#if ENABLED(DELTA)
extern float delta[3];
@ -355,15 +355,10 @@ extern int16_t code_value_short();
// Handling multiple extruders pins
extern uint8_t active_extruder;
#if ENABLED(DIGIPOT_I2C)
extern void digipot_i2c_set_current(int channel, float current);
extern void digipot_i2c_init();
#endif
#if HAS_TEMP_HOTEND || HAS_TEMP_BED
void print_heaterstates();
#endif
extern void calculate_volumetric_multipliers();
void calculate_volumetric_multipliers();
#endif //MARLIN_H

5
Marlin/Marlin_main.cpp

@ -576,6 +576,11 @@ extern "C" {
}
#endif //!SDSUPPORT
#if ENABLED(DIGIPOT_I2C)
extern void digipot_i2c_set_current(int channel, float current);
extern void digipot_i2c_init();
#endif
/**
* Inject the next "immediate" command, when possible.
* Return true if any immediate commands remain to inject.

Loading…
Cancel
Save