Add typedef celsius_t (#21374)
This commit is contained in:
@ -775,7 +775,7 @@ void MMU2::manage_response(const bool move_axes, const bool turn_off_nozzle) {
|
||||
bool response = false;
|
||||
mmu_print_saved = false;
|
||||
xyz_pos_t resume_position;
|
||||
int16_t resume_hotend_temp = thermalManager.degTargetHotend(active_extruder);
|
||||
celsius_t resume_hotend_temp = thermalManager.degTargetHotend(active_extruder);
|
||||
|
||||
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
||||
|
||||
|
@ -555,7 +555,7 @@ void wait_for_confirmation(const bool is_reload/*=false*/, const int8_t max_beep
|
||||
* - Send host action for resume, if configured
|
||||
* - Resume the current SD print job, if any
|
||||
*/
|
||||
void resume_print(const float &slow_load_length/*=0*/, const float &fast_load_length/*=0*/, const float &purge_length/*=ADVANCED_PAUSE_PURGE_LENGTH*/, const int8_t max_beep_count/*=0*/, int16_t targetTemp/*=0*/ DXC_ARGS) {
|
||||
void resume_print(const float &slow_load_length/*=0*/, const float &fast_load_length/*=0*/, const float &purge_length/*=ADVANCED_PAUSE_PURGE_LENGTH*/, const int8_t max_beep_count/*=0*/, const celsius_t targetTemp/*=0*/ DXC_ARGS) {
|
||||
DEBUG_SECTION(rp, "resume_print", true);
|
||||
DEBUG_ECHOLNPAIR("... slowlen:", slow_load_length, " fastlen:", fast_load_length, " purgelen:", purge_length, " maxbeep:", max_beep_count, " targetTemp:", targetTemp DXC_SAY);
|
||||
|
||||
@ -577,9 +577,8 @@ void resume_print(const float &slow_load_length/*=0*/, const float &fast_load_le
|
||||
thermalManager.reset_hotend_idle_timer(e);
|
||||
}
|
||||
|
||||
if (targetTemp > thermalManager.degTargetHotend(active_extruder)) {
|
||||
if (targetTemp > thermalManager.degTargetHotend(active_extruder))
|
||||
thermalManager.setTargetHotend(targetTemp, active_extruder);
|
||||
}
|
||||
|
||||
// Load the new filament
|
||||
load_filament(slow_load_length, fast_load_length, purge_length, max_beep_count, true, nozzle_timed_out, PAUSE_MODE_SAME DXC_PASS);
|
||||
|
@ -90,7 +90,7 @@ bool pause_print(const float &retract, const xyz_pos_t &park_point, const float
|
||||
void wait_for_confirmation(const bool is_reload=false, const int8_t max_beep_count=0 DXC_PARAMS);
|
||||
|
||||
void resume_print(const float &slow_load_length=0, const float &fast_load_length=0, const float &extrude_length=ADVANCED_PAUSE_PURGE_LENGTH,
|
||||
const int8_t max_beep_count=0, int16_t targetTemp=0 DXC_PARAMS);
|
||||
const int8_t max_beep_count=0, const celsius_t targetTemp=0 DXC_PARAMS);
|
||||
|
||||
bool load_filament(const float &slow_load_length=0, const float &fast_load_length=0, const float &extrude_length=0, const int8_t max_beep_count=0,
|
||||
const bool show_lcd=false, const bool pause_for_user=false, const PauseMode mode=PAUSE_MODE_PAUSE_PRINT DXC_PARAMS);
|
||||
|
@ -201,10 +201,10 @@ void PrintJobRecovery::save(const bool force/*=false*/, const float zraise/*=0*/
|
||||
#endif
|
||||
|
||||
#if EXTRUDERS
|
||||
HOTEND_LOOP() info.target_temperature[e] = thermalManager.temp_hotend[e].target;
|
||||
HOTEND_LOOP() info.target_temperature[e] = thermalManager.degTargetHotend(e);
|
||||
#endif
|
||||
|
||||
TERN_(HAS_HEATED_BED, info.target_temperature_bed = thermalManager.temp_bed.target);
|
||||
TERN_(HAS_HEATED_BED, info.target_temperature_bed = thermalManager.degTargetBed());
|
||||
|
||||
#if HAS_FAN
|
||||
COPY(info.fan_speed, thermalManager.fan_speed);
|
||||
@ -343,7 +343,7 @@ void PrintJobRecovery::resume() {
|
||||
#endif
|
||||
|
||||
#if HAS_HEATED_BED
|
||||
const int16_t bt = info.target_temperature_bed;
|
||||
const celsius_t bt = info.target_temperature_bed;
|
||||
if (bt) {
|
||||
// Restore the bed temperature
|
||||
sprintf_P(cmd, PSTR("M190 S%i"), bt);
|
||||
@ -354,7 +354,7 @@ void PrintJobRecovery::resume() {
|
||||
// Restore all hotend temperatures
|
||||
#if HAS_HOTEND
|
||||
HOTEND_LOOP() {
|
||||
const int16_t et = info.target_temperature[e];
|
||||
const celsius_t et = info.target_temperature[e];
|
||||
if (et) {
|
||||
#if HAS_MULTI_HOTEND
|
||||
sprintf_P(cmd, PSTR("T%i S"), e);
|
||||
|
@ -66,8 +66,8 @@ typedef struct {
|
||||
float filament_size[EXTRUDERS];
|
||||
#endif
|
||||
|
||||
TERN_(HAS_HOTEND, int16_t target_temperature[HOTENDS]);
|
||||
TERN_(HAS_HEATED_BED, int16_t target_temperature_bed);
|
||||
TERN_(HAS_HOTEND, celsius_t target_temperature[HOTENDS]);
|
||||
TERN_(HAS_HEATED_BED, celsius_t target_temperature_bed);
|
||||
TERN_(HAS_FAN, uint8_t fan_speed[FAN_COUNT]);
|
||||
|
||||
TERN_(HAS_LEVELING, float fade);
|
||||
|
Reference in New Issue
Block a user