From 36a94ac586b0df07d5f4b6f9fc4ca847132000dc Mon Sep 17 00:00:00 2001 From: teemuatlut Date: Sun, 4 Mar 2018 11:26:30 +0200 Subject: [PATCH] Fix M915 compiling --- Marlin/Marlin_main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 2c6b50133..1423a64f2 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -2889,6 +2889,7 @@ static void clean_up_after_endstop_or_probe_move() { #endif break; #endif + default: break; } } @@ -10684,11 +10685,11 @@ inline void gcode_M502() { } #if Z_IS_TRINAMIC - uint16_t Z_current_1 = stepperZ.getCurrent(), + uint16_t Z_current_1 = stepperZ.getCurrent(); stepperZ.setCurrent(_rms, R_SENSE, HOLD_MULTIPLIER); #endif #if Z2_IS_TRINAMIC - uint16_t Z2_current_1 = stepperZ.getCurrent(); + uint16_t Z2_current_1 = stepperZ2.getCurrent(); stepperZ2.setCurrent(_rms, R_SENSE, HOLD_MULTIPLIER); #endif