auto power control without heated bed (#11467)

`AUTO_POWER_CONTROL` will not work if printer has no heated bed due to `degTargetBed()` not being defined
This commit is contained in:
lsellens
2018-08-06 23:18:13 -05:00
committed by Scott Lahteine
parent 33364c17b9
commit 614a944504
5 changed files with 51 additions and 50 deletions

View File

@@ -35,7 +35,7 @@
/**
* Marlin release version identifier
*/
#define SHORT_BUILD_VERSION "bugfix-1.1.x"
#define SHORT_BUILD_VERSION "1.1.9"
/**
* Verbose version identifier which should contain a reference to the location
@@ -48,7 +48,7 @@
* here we define this default string as the date where the latest release
* version was tagged.
*/
#define STRING_DISTRIBUTION_DATE "2018-01-20"
#define STRING_DISTRIBUTION_DATE "2018-07-31"
/**
* Required minimum Configuration.h and Configuration_adv.h file versions.

View File

@@ -69,7 +69,9 @@ bool Power::is_power_needed() {
) return true;
HOTEND_LOOP() if (thermalManager.degTargetHotend(e) > 0) return true;
if (thermalManager.degTargetBed() > 0) return true;
#if HAS_HEATED_BED
if (thermalManager.degTargetBed() > 0) return true;
#endif
return false;
}