Merge pull request #5560 from thinkyhead/rc_bl_status

Have bed leveling status output current status, not requested.
2.0.x
Scott Lahteine 8 years ago committed by GitHub
commit 04f77df6c0

@ -7030,20 +7030,21 @@ void quickstop_stepper() {
if (code_seen('Z')) set_z_fade_height(code_value_linear_units()); if (code_seen('Z')) set_z_fade_height(code_value_linear_units());
#endif #endif
if (to_enable && !( const bool new_status =
#if ENABLED(MESH_BED_LEVELING) #if ENABLED(MESH_BED_LEVELING)
mbl.active() mbl.active()
#else #else
planner.abl_enabled planner.abl_enabled
#endif #endif
) ) { ;
to_enable = false;
if (to_enable && !new_status) {
SERIAL_ERROR_START; SERIAL_ERROR_START;
SERIAL_ERRORLNPGM(MSG_ERR_M420_FAILED); SERIAL_ERRORLNPGM(MSG_ERR_M420_FAILED);
} }
SERIAL_ECHO_START; SERIAL_ECHO_START;
SERIAL_ECHOLNPAIR("Bed Leveling ", to_enable ? MSG_ON : MSG_OFF); SERIAL_ECHOLNPAIR("Bed Leveling ", new_status ? MSG_ON : MSG_OFF);
// V to print the matrix or mesh // V to print the matrix or mesh
if (code_seen('V')) { if (code_seen('V')) {

@ -183,7 +183,7 @@ void Config_Postprocess() {
bool eeprom_write_error; bool eeprom_write_error;
void _EEPROM_writeData(int &pos, uint8_t* value, uint16_t size) { void _EEPROM_writeData(int &pos, const uint8_t* value, uint16_t size) {
if (eeprom_write_error) return; if (eeprom_write_error) return;
while (size--) { while (size--) {
uint8_t * const p = (uint8_t * const)pos; uint8_t * const p = (uint8_t * const)pos;

Loading…
Cancel
Save