|
@@ -778,13 +778,6 @@ extern "C" {
|
778
|
778
|
extern void digipot_i2c_init();
|
779
|
779
|
#endif
|
780
|
780
|
|
781
|
|
-inline void echo_command(const char* cmd) {
|
782
|
|
- SERIAL_ECHO_START;
|
783
|
|
- SERIAL_ECHOPAIR(MSG_ENQUEUEING, cmd);
|
784
|
|
- SERIAL_CHAR('"');
|
785
|
|
- SERIAL_EOL;
|
786
|
|
-}
|
787
|
|
-
|
788
|
781
|
/**
|
789
|
782
|
* Inject the next "immediate" command, when possible, onto the front of the queue.
|
790
|
783
|
* Return true if any immediate commands remain to inject.
|
|
@@ -847,7 +840,10 @@ inline bool _enqueuecommand(const char* cmd, bool say_ok=false) {
|
847
|
840
|
*/
|
848
|
841
|
bool enqueue_and_echo_command(const char* cmd, bool say_ok/*=false*/) {
|
849
|
842
|
if (_enqueuecommand(cmd, say_ok)) {
|
850
|
|
- echo_command(cmd);
|
|
843
|
+ SERIAL_ECHO_START;
|
|
844
|
+ SERIAL_ECHOPAIR(MSG_ENQUEUEING, cmd);
|
|
845
|
+ SERIAL_CHAR('"');
|
|
846
|
+ SERIAL_EOL;
|
851
|
847
|
return true;
|
852
|
848
|
}
|
853
|
849
|
return false;
|
|
@@ -3639,11 +3635,11 @@ inline void gcode_G28() {
|
3639
|
3635
|
do_blocking_move_to_z(delta_clip_start_height);
|
3640
|
3636
|
#endif
|
3641
|
3637
|
|
3642
|
|
- // Enable mesh leveling again
|
3643
|
3638
|
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
3644
|
|
- set_bed_leveling_enabled(bed_leveling_state_at_entry);
|
|
3639
|
+ set_bed_leveling_enabled(bed_leveling_state_at_entry);
|
3645
|
3640
|
#endif
|
3646
|
3641
|
|
|
3642
|
+ // Enable mesh leveling again
|
3647
|
3643
|
#if ENABLED(MESH_BED_LEVELING)
|
3648
|
3644
|
if (mbl.reactivate()) {
|
3649
|
3645
|
set_bed_leveling_enabled(true);
|