Fix compile error, squelch warnings (#13487)

- Fix path to `bedlevel.h` include file
- Add default to `case` statements to suppress warnings
This commit is contained in:
Marcio Teixeira 2019-03-25 19:41:38 -06:00 committed by Scott Lahteine
parent 0d3ea59bcf
commit 7462fe3068

View File

@ -89,7 +89,7 @@
#endif #endif
#if HAS_LEVELING #if HAS_LEVELING
#include "../../feature/bedlevel.h" #include "../../feature/bedlevel/bedlevel.h"
#endif #endif
#if HAS_FILAMENT_SENSOR #if HAS_FILAMENT_SENSOR
@ -401,6 +401,7 @@ namespace ExtUI {
#if AXIS_IS_TMC(Z) #if AXIS_IS_TMC(Z)
case Z: stepperZ.rms_current(clamp(mA, 500, 1500)); break; case Z: stepperZ.rms_current(clamp(mA, 500, 1500)); break;
#endif #endif
default: break;
}; };
} }
@ -424,6 +425,7 @@ namespace ExtUI {
#if AXIS_IS_TMC(E5) #if AXIS_IS_TMC(E5)
case E5: stepperE5.rms_current(clamp(mA, 500, 1500)); break; case E5: stepperE5.rms_current(clamp(mA, 500, 1500)); break;
#endif #endif
default: break;
}; };
} }
@ -438,6 +440,7 @@ namespace ExtUI {
#if Z_SENSORLESS && AXIS_HAS_STALLGUARD(Z) #if Z_SENSORLESS && AXIS_HAS_STALLGUARD(Z)
case Z: return stepperZ.sgt(); case Z: return stepperZ.sgt();
#endif #endif
default: return 0;
} }
} }
@ -452,6 +455,7 @@ namespace ExtUI {
#if Z_SENSORLESS && AXIS_HAS_STALLGUARD(Z) #if Z_SENSORLESS && AXIS_HAS_STALLGUARD(Z)
case Z: stepperZ.sgt(clamp(value, -64, 63)); break; case Z: stepperZ.sgt(clamp(value, -64, 63)); break;
#endif #endif
default: break;
} }
} }
#endif #endif