Skip to content

Commit

Permalink
Merge pull request #228 from dragomirecky/release-4.0.2-pick-bad-max-…
Browse files Browse the repository at this point in the history
…temp-limit

[4.0.2] Fix MINI's bed max temperature limit (#224)
  • Loading branch information
DRracer authored Feb 17, 2020
2 parents bfd7ffd + 12c77bd commit 2e0ec89
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 7 additions & 1 deletion include/marlin/Configuration_A3ides_2209_MINI.h
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,13 @@
#define HEATER_3_MAXTEMP 275
#define HEATER_4_MAXTEMP 275
#define HEATER_5_MAXTEMP 275
#define BED_MAXTEMP 125
// Beware: this is the absolute temperature limit.
// The MINI cannot normally reach 110C.
// Thus all usage in the UI must be lowered by 10C to offer a valid temperature limit.
// Those 10C are a safety margin used throughout the whole Marlin code
// (without a proper #define though :( )
#define BED_MAXTEMP 110
#define BED_MAXTEMP_SAFETY_MARGIN 10
#define CHAMBER_MAXTEMP 100

//===========================================================================
Expand Down
2 changes: 1 addition & 1 deletion lib/Marlin
4 changes: 3 additions & 1 deletion src/gui/menu_vars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ const float z_offset_max = Z_OFFSET_MAX;
const float zoffset_fl_range[3] = { z_offset_min, z_offset_max, z_offset_step };
const char *zoffset_fl_format = "%.3f";
const int32_t nozzle_range[3] = { 0, (HEATER_0_MAXTEMP - 15) * 1000, 1000 };
const int32_t heatbed_range[3] = { 0, BED_MAXTEMP * 1000, 1000 };
// The MINI can heat up no more than 100C, for detection of thermal run away the bed is set 10C higher
// Thus do not allow the user to set a higher bed temp in the UI here
const int32_t heatbed_range[3] = { 0, (BED_MAXTEMP - BED_MAXTEMP_SAFETY_MARGIN) * 1000, 1000 };
const int32_t printfan_range[3] = { 0, 255000, 1000 };
const int32_t flowfact_range[3] = { 50000, 150000, 1000 };
const int32_t feedrate_range[3] = { 10000, 255000, 1000 };
Expand Down

0 comments on commit 2e0ec89

Please sign in to comment.