G20/21 and M149 support, and code_value() refactor
This is an update of MarlinDev PR #196. G20/21: support for switching input units between millimeters and inches. M149: support for changing input temperature units. In support of these changes, code_value() and code_value_short() are replaced with an array of functions which handle converting to the proper types and/or units.
This commit is contained in:
committed by
Scott Lahteine
parent
a569e89775
commit
16212432c9
@ -732,6 +732,16 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||
//
|
||||
//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose
|
||||
|
||||
//
|
||||
// G20/G21 Inch mode support
|
||||
//
|
||||
//#define INCH_MODE_SUPPORT
|
||||
|
||||
//
|
||||
// M149 Set temperature units support
|
||||
//
|
||||
//#define TEMPERATURE_UNITS_SUPPORT
|
||||
|
||||
// @section temperature
|
||||
|
||||
// Preheat Constants
|
||||
|
@ -730,6 +730,16 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||
//
|
||||
//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose
|
||||
|
||||
//
|
||||
// G20/G21 Inch mode support
|
||||
//
|
||||
//#define INCH_MODE_SUPPORT
|
||||
|
||||
//
|
||||
// M149 Set temperature units support
|
||||
//
|
||||
//#define TEMPERATURE_UNITS_SUPPORT
|
||||
|
||||
// @section temperature
|
||||
|
||||
// Preheat Constants
|
||||
|
@ -741,6 +741,16 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
|
||||
//
|
||||
//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose
|
||||
|
||||
//
|
||||
// G20/G21 Inch mode support
|
||||
//
|
||||
//#define INCH_MODE_SUPPORT
|
||||
|
||||
//
|
||||
// M149 Set temperature units support
|
||||
//
|
||||
//#define TEMPERATURE_UNITS_SUPPORT
|
||||
|
||||
// @section temperature
|
||||
|
||||
// Preheat Constants
|
||||
|
@ -743,6 +743,16 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||
//
|
||||
//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose
|
||||
|
||||
//
|
||||
// G20/G21 Inch mode support
|
||||
//
|
||||
//#define INCH_MODE_SUPPORT
|
||||
|
||||
//
|
||||
// M149 Set temperature units support
|
||||
//
|
||||
//#define TEMPERATURE_UNITS_SUPPORT
|
||||
|
||||
// @section temperature
|
||||
|
||||
// Preheat Constants
|
||||
|
@ -766,6 +766,16 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||
//
|
||||
//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose
|
||||
|
||||
//
|
||||
// G20/G21 Inch mode support
|
||||
//
|
||||
//#define INCH_MODE_SUPPORT
|
||||
|
||||
//
|
||||
// M149 Set temperature units support
|
||||
//
|
||||
//#define TEMPERATURE_UNITS_SUPPORT
|
||||
|
||||
// @section temperature
|
||||
|
||||
// Preheat Constants
|
||||
|
@ -749,6 +749,16 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||
//
|
||||
//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose
|
||||
|
||||
//
|
||||
// G20/G21 Inch mode support
|
||||
//
|
||||
//#define INCH_MODE_SUPPORT
|
||||
|
||||
//
|
||||
// M149 Set temperature units support
|
||||
//
|
||||
//#define TEMPERATURE_UNITS_SUPPORT
|
||||
|
||||
// @section temperature
|
||||
|
||||
// Preheat Constants
|
||||
|
@ -744,6 +744,16 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||
//
|
||||
//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose
|
||||
|
||||
//
|
||||
// G20/G21 Inch mode support
|
||||
//
|
||||
//#define INCH_MODE_SUPPORT
|
||||
|
||||
//
|
||||
// M149 Set temperature units support
|
||||
//
|
||||
//#define TEMPERATURE_UNITS_SUPPORT
|
||||
|
||||
// @section temperature
|
||||
|
||||
// Preheat Constants
|
||||
|
@ -757,6 +757,16 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||
//
|
||||
//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose
|
||||
|
||||
//
|
||||
// G20/G21 Inch mode support
|
||||
//
|
||||
//#define INCH_MODE_SUPPORT
|
||||
|
||||
//
|
||||
// M149 Set temperature units support
|
||||
//
|
||||
//#define TEMPERATURE_UNITS_SUPPORT
|
||||
|
||||
// @section temperature
|
||||
|
||||
// Preheat Constants
|
||||
|
@ -770,6 +770,16 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||
//
|
||||
//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose
|
||||
|
||||
//
|
||||
// G20/G21 Inch mode support
|
||||
//
|
||||
//#define INCH_MODE_SUPPORT
|
||||
|
||||
//
|
||||
// M149 Set temperature units support
|
||||
//
|
||||
//#define TEMPERATURE_UNITS_SUPPORT
|
||||
|
||||
// @section temperature
|
||||
|
||||
// Preheat Constants
|
||||
|
@ -741,6 +741,16 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
|
||||
//
|
||||
//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose
|
||||
|
||||
//
|
||||
// G20/G21 Inch mode support
|
||||
//
|
||||
//#define INCH_MODE_SUPPORT
|
||||
|
||||
//
|
||||
// M149 Set temperature units support
|
||||
//
|
||||
//#define TEMPERATURE_UNITS_SUPPORT
|
||||
|
||||
// @section temperature
|
||||
|
||||
// Preheat Constants
|
||||
|
@ -749,6 +749,16 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||
//
|
||||
//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose
|
||||
|
||||
//
|
||||
// G20/G21 Inch mode support
|
||||
//
|
||||
//#define INCH_MODE_SUPPORT
|
||||
|
||||
//
|
||||
// M149 Set temperature units support
|
||||
//
|
||||
//#define TEMPERATURE_UNITS_SUPPORT
|
||||
|
||||
// @section temperature
|
||||
|
||||
// Preheat Constants
|
||||
|
@ -838,6 +838,16 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
|
||||
//
|
||||
//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose
|
||||
|
||||
//
|
||||
// G20/G21 Inch mode support
|
||||
//
|
||||
//#define INCH_MODE_SUPPORT
|
||||
|
||||
//
|
||||
// M149 Set temperature units support
|
||||
//
|
||||
//#define TEMPERATURE_UNITS_SUPPORT
|
||||
|
||||
// @section temperature
|
||||
|
||||
// Preheat Constants
|
||||
|
@ -832,6 +832,16 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
|
||||
//
|
||||
//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose
|
||||
|
||||
//
|
||||
// G20/G21 Inch mode support
|
||||
//
|
||||
//#define INCH_MODE_SUPPORT
|
||||
|
||||
//
|
||||
// M149 Set temperature units support
|
||||
//
|
||||
//#define TEMPERATURE_UNITS_SUPPORT
|
||||
|
||||
// @section temperature
|
||||
|
||||
// Preheat Constants
|
||||
|
@ -835,6 +835,16 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||
//
|
||||
//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose
|
||||
|
||||
//
|
||||
// G20/G21 Inch mode support
|
||||
//
|
||||
//#define INCH_MODE_SUPPORT
|
||||
|
||||
//
|
||||
// M149 Set temperature units support
|
||||
//
|
||||
//#define TEMPERATURE_UNITS_SUPPORT
|
||||
|
||||
// @section temperature
|
||||
|
||||
// Preheat Constants
|
||||
|
@ -835,6 +835,16 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||
//
|
||||
//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose
|
||||
|
||||
//
|
||||
// G20/G21 Inch mode support
|
||||
//
|
||||
//#define INCH_MODE_SUPPORT
|
||||
|
||||
//
|
||||
// M149 Set temperature units support
|
||||
//
|
||||
//#define TEMPERATURE_UNITS_SUPPORT
|
||||
|
||||
// @section temperature
|
||||
|
||||
// Preheat Constants
|
||||
|
@ -837,6 +837,16 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||
//
|
||||
//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose
|
||||
|
||||
//
|
||||
// G20/G21 Inch mode support
|
||||
//
|
||||
//#define INCH_MODE_SUPPORT
|
||||
|
||||
//
|
||||
// M149 Set temperature units support
|
||||
//
|
||||
//#define TEMPERATURE_UNITS_SUPPORT
|
||||
|
||||
// @section temperature
|
||||
|
||||
// Preheat Constants
|
||||
|
@ -752,6 +752,16 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||
//
|
||||
//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose
|
||||
|
||||
//
|
||||
// G20/G21 Inch mode support
|
||||
//
|
||||
//#define INCH_MODE_SUPPORT
|
||||
|
||||
//
|
||||
// M149 Set temperature units support
|
||||
//
|
||||
//#define TEMPERATURE_UNITS_SUPPORT
|
||||
|
||||
// @section temperature
|
||||
|
||||
// Preheat Constants
|
||||
|
@ -743,6 +743,16 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
|
||||
//
|
||||
//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose
|
||||
|
||||
//
|
||||
// G20/G21 Inch mode support
|
||||
//
|
||||
//#define INCH_MODE_SUPPORT
|
||||
|
||||
//
|
||||
// M149 Set temperature units support
|
||||
//
|
||||
//#define TEMPERATURE_UNITS_SUPPORT
|
||||
|
||||
// @section temperature
|
||||
|
||||
// Preheat Constants
|
||||
|
Reference in New Issue
Block a user