这是indexloc提供的服务,不要输入任何密码
Skip to content

Fix compilation issue in multi-uart setup #1276

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

Closed

Conversation

shm-dmitry
Copy link

Description

This pull request fixes 2 issues (one per commit) after enabling second UART:

  1. M575 gcode - wrong variable declaration - it declared after first usage, so it leads to compilation error
  2. define SERIAL_CATCHALL - I checked all usage for this define. In one-UART it dose not used, after enabling second UART it leads to multiple compilation error in serial.h because in line 76 define _SERIAL_LEAF_2 defines to number. I spend a lot of time to found reason and recheck it, and at now I'm sure that SERIAL_CATCHALL must be removed. I use firmware with this fix for a few weaks, all works fine.

Requirements

Enabling second UART in Configuration.h:

#define SERIAL_PORT_2 2

I use board BQ skr mini E3, but I think this errors appears at any board after enabling second UART

Benefits

This pull request fixes compilation errors :)

Configurations

Attached:
config.zip

Related Issues

No

@mriscoc
Copy link
Owner

mriscoc commented Apr 3, 2024

Please upscale this PR to the official Marlin repository: https://github.com/MarlinFirmware/Marlin
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants