|
@@ -5567,7 +5567,7 @@ void home_all_axes() { gcode_G28(true); }
|
5567
|
5567
|
N++;
|
5568
|
5568
|
}
|
5569
|
5569
|
zero_std_dev_old = zero_std_dev;
|
5570
|
|
- zero_std_dev = round(sqrt(S2 / N) * 1000.0) / 1000.0 + 0.00001;
|
|
5570
|
+ zero_std_dev = round(SQRT(S2 / N) * 1000.0) / 1000.0 + 0.00001;
|
5571
|
5571
|
|
5572
|
5572
|
// Solve matrices
|
5573
|
5573
|
|
|
@@ -7753,16 +7753,17 @@ inline void gcode_M110() {
|
7753
|
7753
|
* M111: Set the debug level
|
7754
|
7754
|
*/
|
7755
|
7755
|
inline void gcode_M111() {
|
7756
|
|
- marlin_debug_flags = parser.byteval('S', (uint8_t)DEBUG_NONE);
|
7757
|
|
-
|
7758
|
|
- const static char str_debug_1[] PROGMEM = MSG_DEBUG_ECHO;
|
7759
|
|
- const static char str_debug_2[] PROGMEM = MSG_DEBUG_INFO;
|
7760
|
|
- const static char str_debug_4[] PROGMEM = MSG_DEBUG_ERRORS;
|
7761
|
|
- const static char str_debug_8[] PROGMEM = MSG_DEBUG_DRYRUN;
|
7762
|
|
- const static char str_debug_16[] PROGMEM = MSG_DEBUG_COMMUNICATION;
|
7763
|
|
- #if ENABLED(DEBUG_LEVELING_FEATURE)
|
7764
|
|
- const static char str_debug_32[] PROGMEM = MSG_DEBUG_LEVELING;
|
7765
|
|
- #endif
|
|
7756
|
+ if (parser.seen('S')) marlin_debug_flags = parser.byteval('S');
|
|
7757
|
+
|
|
7758
|
+ const static char str_debug_1[] PROGMEM = MSG_DEBUG_ECHO,
|
|
7759
|
+ str_debug_2[] PROGMEM = MSG_DEBUG_INFO,
|
|
7760
|
+ str_debug_4[] PROGMEM = MSG_DEBUG_ERRORS,
|
|
7761
|
+ str_debug_8[] PROGMEM = MSG_DEBUG_DRYRUN,
|
|
7762
|
+ str_debug_16[] PROGMEM = MSG_DEBUG_COMMUNICATION
|
|
7763
|
+ #if ENABLED(DEBUG_LEVELING_FEATURE)
|
|
7764
|
+ , str_debug_32[] PROGMEM = MSG_DEBUG_LEVELING
|
|
7765
|
+ #endif
|
|
7766
|
+ ;
|
7766
|
7767
|
|
7767
|
7768
|
const static char* const debug_strings[] PROGMEM = {
|
7768
|
7769
|
str_debug_1, str_debug_2, str_debug_4, str_debug_8, str_debug_16
|