Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2022-01-13 18:02:56 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-01-13 18:02:56 +0300
commit087c2f5965ec5068f9311729961156c5c12b0100 (patch)
tree1d45fce4d460c32b367752677bdaa7123d7002ea /src/Display
parentff200dbf2118c198adc6842af81be115c00a7695 (diff)
Fixed 12864 active temperature live adjust not turning bed heater on
Diffstat (limited to 'src/Display')
-rw-r--r--src/Display/MenuItem.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/Display/MenuItem.cpp b/src/Display/MenuItem.cpp
index a2bbe754..f7632fb0 100644
--- a/src/Display/MenuItem.cpp
+++ b/src/Display/MenuItem.cpp
@@ -533,22 +533,11 @@ bool ValueMenuItem::Adjust_SelectHelper() noexcept
switch (valIndex/100)
{
case 1: // heater active temperature
- if (1.0 > currentValue.f) // 0 is off
- {
- reprap.GetGCodes().SetItemActiveTemperature(itemNumber, -273.15);
- }
- else // otherwise ensure the tool is made active at the same time (really only matters for 79)
- {
- if (80 > itemNumber)
- {
- reprap.SelectTool(itemNumber, false);
- }
- reprap.GetGCodes().SetItemActiveTemperature(itemNumber, currentValue.f);
- }
+ reprap.GetGCodes().SetItemActiveTemperature(itemNumber, (currentValue.f < 1.0) ? ABS_ZERO : currentValue.f);
break;
case 2: // heater standby temperature
- reprap.GetGCodes().SetItemStandbyTemperature(itemNumber, (1.0 > currentValue.f) ? -273.15 : currentValue.f);
+ reprap.GetGCodes().SetItemStandbyTemperature(itemNumber, (currentValue.f < 1.0) ? ABS_ZERO : currentValue.f);
break;
case 3: // fan %