Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
marlin-anet-a8
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
marlin-anet-a8
Commits
2bcc2ec7
Unverified
Commit
2bcc2ec7
authored
Feb 23, 2020
by
Jason Smith
Committed by
GitHub
Feb 23, 2020
Browse files
Options
Downloads
Patches
Plain Diff
Reduce default TMC baudrate to 57600 with Software Serial (#16930)
parent
529d57bd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Marlin/src/module/stepper/trinamic.cpp
+10
-1
10 additions, 1 deletion
Marlin/src/module/stepper/trinamic.cpp
with
10 additions
and
1 deletion
Marlin/src/module/stepper/trinamic.cpp
+
10
−
1
View file @
2bcc2ec7
...
@@ -117,8 +117,17 @@ enum StealthIndex : uint8_t { STEALTH_AXIS_XY, STEALTH_AXIS_Z, STEALTH_AXIS_E };
...
@@ -117,8 +117,17 @@ enum StealthIndex : uint8_t { STEALTH_AXIS_XY, STEALTH_AXIS_Z, STEALTH_AXIS_E };
#endif
#endif
#ifndef TMC_BAUD_RATE
#ifndef TMC_BAUD_RATE
#if HAS_TMC_SW_SERIAL
// Reduce baud rate for boards not already overriding TMC_BAUD_RATE for software serial.
// Testing has shown that 115200 is not 100% reliable on AVR platforms, occasionally
// failing to read status properly. 32-bit platforms typically define an even lower
// TMC_BAUD_RATE, due to differences in how SoftwareSerial libraries work on different
// platforms.
#define TMC_BAUD_RATE 57600
#else
#define TMC_BAUD_RATE 115200
#define TMC_BAUD_RATE 115200
#endif
#endif
#endif
#if HAS_DRIVER(TMC2130)
#if HAS_DRIVER(TMC2130)
template
<
char
AXIS_LETTER
,
char
DRIVER_ID
,
AxisEnum
AXIS_ID
>
template
<
char
AXIS_LETTER
,
char
DRIVER_ID
,
AxisEnum
AXIS_ID
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment