mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-25 16:47:29 +08:00
🧑💻 Fix some ExtUI return types (#27542)
This commit is contained in:
parent
f5a5d7a620
commit
095f060c24
@ -293,7 +293,7 @@ namespace ExtUI {
|
||||
return GET_TEMP_ADJUSTMENT(thermalManager.degHotend(extruder - E0));
|
||||
}
|
||||
|
||||
celsius_float_t getTargetTemp_celsius(const heater_t heater) {
|
||||
celsius_t getTargetTemp_celsius(const heater_t heater) {
|
||||
switch (heater) {
|
||||
#if HAS_HEATED_BED
|
||||
case BED: return GET_TEMP_ADJUSTMENT(thermalManager.degTargetBed());
|
||||
@ -305,19 +305,19 @@ namespace ExtUI {
|
||||
}
|
||||
}
|
||||
|
||||
celsius_float_t getTargetTemp_celsius(const extruder_t extruder) {
|
||||
celsius_t getTargetTemp_celsius(const extruder_t extruder) {
|
||||
return GET_TEMP_ADJUSTMENT(thermalManager.degTargetHotend(extruder - E0));
|
||||
}
|
||||
|
||||
//
|
||||
// Fan target/actual speed
|
||||
//
|
||||
float getTargetFan_percent(const fan_t fan) {
|
||||
uint8_t getTargetFan_percent(const fan_t fan) {
|
||||
UNUSED(fan);
|
||||
return TERN0(HAS_FAN, thermalManager.fanSpeedPercent(fan - FAN0));
|
||||
}
|
||||
|
||||
float getActualFan_percent(const fan_t fan) {
|
||||
uint8_t getActualFan_percent(const fan_t fan) {
|
||||
UNUSED(fan);
|
||||
return TERN0(HAS_FAN, thermalManager.scaledFanSpeedPercent(fan - FAN0));
|
||||
}
|
||||
|
@ -172,10 +172,10 @@ namespace ExtUI {
|
||||
bool isHeaterIdle(const extruder_t);
|
||||
celsius_float_t getActualTemp_celsius(const heater_t);
|
||||
celsius_float_t getActualTemp_celsius(const extruder_t);
|
||||
celsius_float_t getTargetTemp_celsius(const heater_t);
|
||||
celsius_float_t getTargetTemp_celsius(const extruder_t);
|
||||
float getActualFan_percent(const fan_t);
|
||||
float getTargetFan_percent(const fan_t);
|
||||
celsius_t getTargetTemp_celsius(const heater_t);
|
||||
celsius_t getTargetTemp_celsius(const extruder_t);
|
||||
uint8_t getActualFan_percent(const fan_t);
|
||||
uint8_t getTargetFan_percent(const fan_t);
|
||||
|
||||
// High level positions, by Axis ID, Extruder ID
|
||||
float getAxisPosition_mm(const axis_t);
|
||||
|
Loading…
Reference in New Issue
Block a user