BARICUDA valve pressure consistently uint8_t

This commit is contained in:
Scott Lahteine 2017-07-17 22:01:20 -05:00
parent 4d98e3f0a7
commit 72de280c1e
4 changed files with 6 additions and 7 deletions

View file

@ -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)

View file

@ -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)

View file

@ -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

View file

@ -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;