Replace double with float, optimize calculation

This commit is contained in:
etagle authored and Scott Lahteine committed 2018-07-04 22:28:56 -05:00
1 parent d960d448fa
commit 1367df2875
38 files changed
+263 -267

No files matched your search

+1 -1
View File
@@ -625,7 +625,7 @@ static float run_z_probe() {
#if MULTIPLE_PROBING > 2
// Return the average value of all probes
const float measured_z = probes_total * (1.0 / (MULTIPLE_PROBING));
const float measured_z = probes_total * (1.0f / (MULTIPLE_PROBING));
#elif MULTIPLE_PROBING == 2