From 357854a7efe2683a201f1344746426c8018861c6 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 5 Oct 2016 19:49:05 -0400 Subject: [PATCH] tweak variables; --- Marlin/Marlin_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 3b9e11a6d2..e8fcb3542c 100755 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -4747,7 +4747,7 @@ inline void gcode_M42() { randomSeed(millis()); - double mean = 0, sigma = 0, sample_set[n_samples], min = 99999, max = 0; + double mean = 0.0, sigma = 0.0, min = 99999.9, max = -99999.9, sample_set[n_samples]; for (uint8_t n = 0; n < n_samples; n++) { if (n_legs) {