Browse Source

BARICUDA valve pressure consistently uint8_t

pull/1/head
Scott Lahteine 8 years ago
parent
commit
72de280c1e
  1. 3
      Marlin/Marlin.h
  2. 4
      Marlin/Marlin_main.cpp
  3. 4
      Marlin/planner.cpp
  4. 2
      Marlin/planner.h

3
Marlin/Marlin.h

@ -362,8 +362,7 @@ extern float soft_endstop_min[XYZ], soft_endstop_max[XYZ];
#endif
#if ENABLED(BARICUDA)
extern int baricuda_valve_pressure;
extern int baricuda_e_to_p_pressure;
extern uint8_t baricuda_valve_pressure, baricuda_e_to_p_pressure;
#endif
#if ENABLED(FILAMENT_WIDTH_SENSOR)

4
Marlin/Marlin_main.cpp

@ -561,8 +561,8 @@ static uint8_t target_extruder;
#endif
#if ENABLED(BARICUDA)
int baricuda_valve_pressure = 0;
int baricuda_e_to_p_pressure = 0;
uint8_t baricuda_valve_pressure = 0,
baricuda_e_to_p_pressure = 0;
#endif
#if ENABLED(FWRETRACT)

4
Marlin/planner.cpp

@ -409,10 +409,10 @@ void Planner::check_axes_activity() {
#if ENABLED(BARICUDA)
#if HAS_HEATER_1
unsigned char tail_valve_pressure = baricuda_valve_pressure;
uint8_t tail_valve_pressure = baricuda_valve_pressure;
#endif
#if HAS_HEATER_2
unsigned char tail_e_to_p_pressure = baricuda_e_to_p_pressure;
uint8_t tail_e_to_p_pressure = baricuda_e_to_p_pressure;
#endif
#endif

2
Marlin/planner.h

@ -121,7 +121,7 @@ typedef struct {
#endif
#if ENABLED(BARICUDA)
uint32_t valve_pressure, e_to_p_pressure;
uint8_t valve_pressure, e_to_p_pressure;
#endif
uint32_t segment_time;

Loading…
Cancel
Save