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 #endif
#if ENABLED(BARICUDA) #if ENABLED(BARICUDA)
extern int baricuda_valve_pressure; extern uint8_t baricuda_valve_pressure, baricuda_e_to_p_pressure;
extern int baricuda_e_to_p_pressure;
#endif #endif
#if ENABLED(FILAMENT_WIDTH_SENSOR) #if ENABLED(FILAMENT_WIDTH_SENSOR)

View File

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

View File

@ -409,10 +409,10 @@ void Planner::check_axes_activity() {
#if ENABLED(BARICUDA) #if ENABLED(BARICUDA)
#if HAS_HEATER_1 #if HAS_HEATER_1
unsigned char tail_valve_pressure = baricuda_valve_pressure; uint8_t tail_valve_pressure = baricuda_valve_pressure;
#endif #endif
#if HAS_HEATER_2 #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
#endif #endif

View File

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