Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serial Communication has Problems because ubl.cpp is missing a newline. #20417

Closed
unixhelden opened this issue Dec 9, 2020 · 6 comments
Closed

Comments

@unixhelden
Copy link

unixhelden commented Dec 9, 2020

After compiling and uploading todays bugfix release i noticed i had massive issues with octoprint.

After asking for help in Octoprint Forum @foosel noticed there is a problem with Marlin where it does not set the Newline for a message correctly.

diff --git a/Marlin/src/feature/bedlevel/ubl/ubl.cpp b/Marlin/src/feature/bedlevel/ubl/ubl.cpp
index 087fdf42b2..82ce79e025 100644
--- a/Marlin/src/feature/bedlevel/ubl/ubl.cpp
+++ b/Marlin/src/feature/bedlevel/ubl/ubl.cpp
@@ -43,7 +43,7 @@
#include "math.h"

void unified_bed_leveling::echo_name() {
- SERIAL_ECHOPGM("Unified Bed Leveling");
+ SERIAL_ECHOPGM("Unified Bed Leveling\n");
}

void unified_bed_leveling::report_current_mesh() {

This Patch solves the Problem.

Thx in advance :)

@ellensp
Copy link
Contributor

ellensp commented Dec 10, 2020

@ellensp
Copy link
Contributor

ellensp commented Dec 10, 2020

The following seem to be in error, when DEBUG_ECHOLNPGM is disabled

           ubl.echo_name();
             DEBUG_ECHOLNPGM(" initialized.\n"); ```

@ellensp
Copy link
Contributor

ellensp commented Dec 10, 2020

A better answer is find the following in Marlin/src/module/settings.cpp
//#define DEBUG_OUT 1
change to
#define DEBUG_OUT ENABLED(DEBUG_LEVELING_FEATURE)
then find

            #if ENABLED(EEPROM_CHITCHAT)
              ubl.echo_name();
              DEBUG_ECHOLNPGM(" initialized.\n");
            #endif

and change it to

            #if BOTH(EEPROM_CHITCHAT, DEBUG_LEVELING_FEATURE)
              ubl.echo_name();
              DEBUG_ECHOLNPGM(" initialized.\n");
            #endif

then find

            #if ENABLED(EEPROM_CHITCHAT)
              DEBUG_ECHOPGM("?Can't enable ");
              ubl.echo_name();

and change it to

            #if BOTH(EEPROM_CHITCHAT, DEBUG_LEVELING_FEATURE)
              DEBUG_ECHOPGM("?Can't enable ");
              ubl.echo_name();

@ellensp
Copy link
Contributor

ellensp commented Dec 10, 2020

PR created

@ellensp
Copy link
Contributor

ellensp commented Dec 10, 2020

This has now been merged so is in bugfix.

@ellensp ellensp closed this as completed Dec 10, 2020
@github-actions
Copy link

github-actions bot commented Feb 9, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Feb 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants