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 extern bool axis_homed[3]; // axis[n].is_homed
// GCode support for external objects // GCode support for external objects
extern bool code_seen(char); bool code_seen(char);
extern float code_value(); float code_value();
extern long code_value_long(); long code_value_long();
extern int16_t code_value_short(); int16_t code_value_short();
#if ENABLED(DELTA) #if ENABLED(DELTA)
extern float delta[3]; extern float delta[3];
@ -355,15 +355,10 @@ extern int16_t code_value_short();
// Handling multiple extruders pins // Handling multiple extruders pins
extern uint8_t active_extruder; 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 #if HAS_TEMP_HOTEND || HAS_TEMP_BED
void print_heaterstates(); void print_heaterstates();
#endif #endif
extern void calculate_volumetric_multipliers(); void calculate_volumetric_multipliers();
#endif //MARLIN_H #endif //MARLIN_H

5
Marlin/Marlin_main.cpp

@ -576,6 +576,11 @@ extern "C" {
} }
#endif //!SDSUPPORT #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. * Inject the next "immediate" command, when possible.
* Return true if any immediate commands remain to inject. * Return true if any immediate commands remain to inject.

Loading…
Cancel
Save