Rename baricuda variables

This commit is contained in:
Scott Lahteine 2016-04-17 23:12:15 -07:00
parent 78747b1328
commit a4062a47ac
3 changed files with 12 additions and 12 deletions

View file

@ -340,8 +340,8 @@ extern bool axis_homed[3]; // axis[n].is_homed
#endif #endif
#if ENABLED(BARICUDA) #if ENABLED(BARICUDA)
extern int ValvePressure; extern int baricuda_valve_pressure;
extern int EtoPPressure; extern int baricuda_e_to_p_pressure;
#endif #endif
#if ENABLED(FILAMENT_WIDTH_SENSOR) #if ENABLED(FILAMENT_WIDTH_SENSOR)

View file

@ -346,8 +346,8 @@ static uint8_t target_extruder;
#endif #endif
#if ENABLED(BARICUDA) #if ENABLED(BARICUDA)
int ValvePressure = 0; int baricuda_valve_pressure = 0;
int EtoPPressure = 0; int baricuda_e_to_p_pressure = 0;
#endif #endif
#if ENABLED(FWRETRACT) #if ENABLED(FWRETRACT)
@ -4622,22 +4622,22 @@ inline void gcode_M112() { kill(PSTR(MSG_KILLED)); }
/** /**
* M126: Heater 1 valve open * M126: Heater 1 valve open
*/ */
inline void gcode_M126() { ValvePressure = code_seen('S') ? constrain(code_value(), 0, 255) : 255; } inline void gcode_M126() { baricuda_valve_pressure = code_seen('S') ? constrain(code_value(), 0, 255) : 255; }
/** /**
* M127: Heater 1 valve close * M127: Heater 1 valve close
*/ */
inline void gcode_M127() { ValvePressure = 0; } inline void gcode_M127() { baricuda_valve_pressure = 0; }
#endif #endif
#if HAS_HEATER_2 #if HAS_HEATER_2
/** /**
* M128: Heater 2 valve open * M128: Heater 2 valve open
*/ */
inline void gcode_M128() { EtoPPressure = code_seen('S') ? constrain(code_value(), 0, 255) : 255; } inline void gcode_M128() { baricuda_e_to_p_pressure = code_seen('S') ? constrain(code_value(), 0, 255) : 255; }
/** /**
* M129: Heater 2 valve close * M129: Heater 2 valve close
*/ */
inline void gcode_M129() { EtoPPressure = 0; } inline void gcode_M129() { baricuda_e_to_p_pressure = 0; }
#endif #endif
#endif //BARICUDA #endif //BARICUDA

View file

@ -428,8 +428,8 @@ void check_axes_activity() {
#endif #endif
#if ENABLED(BARICUDA) #if ENABLED(BARICUDA)
unsigned char tail_valve_pressure = ValvePressure, unsigned char tail_valve_pressure = baricuda_valve_pressure,
tail_e_to_p_pressure = EtoPPressure; tail_e_to_p_pressure = baricuda_e_to_p_pressure;
#endif #endif
block_t* block; block_t* block;
@ -650,8 +650,8 @@ float junction_deviation = 0.1;
#endif #endif
#if ENABLED(BARICUDA) #if ENABLED(BARICUDA)
block->valve_pressure = ValvePressure; block->valve_pressure = baricuda_valve_pressure;
block->e_to_p_pressure = EtoPPressure; block->e_to_p_pressure = baricuda_e_to_p_pressure;
#endif #endif
// Compute direction bits for this block // Compute direction bits for this block