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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
marlin-anet-a8
Commits
e02b0667
Commit
e02b0667
authored
5 years ago
by
Timm
Committed by
Scott Lahteine
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Increase MMU2 serial buffer size with USB serial (#15646)
parent
0f5d4572
Loading
Loading
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Marlin/src/feature/prusa_MMU2/mmu2.cpp
+1
-1
1 addition, 1 deletion
Marlin/src/feature/prusa_MMU2/mmu2.cpp
Marlin/src/feature/prusa_MMU2/mmu2.h
+9
-1
9 additions, 1 deletion
Marlin/src/feature/prusa_MMU2/mmu2.h
with
10 additions
and
2 deletions
Marlin/src/feature/prusa_MMU2/mmu2.cpp
+
1
−
1
View file @
e02b0667
...
...
@@ -97,7 +97,7 @@ volatile int8_t MMU2::finda = 1;
volatile
bool
MMU2
::
finda_runout_valid
;
int16_t
MMU2
::
version
=
-
1
,
MMU2
::
buildnr
=
-
1
;
millis_t
MMU2
::
last_request
,
MMU2
::
next_P0_request
;
char
MMU2
::
rx_buffer
[
16
],
MMU2
::
tx_buffer
[
16
];
char
MMU2
::
rx_buffer
[
MMU_RX_SIZE
],
MMU2
::
tx_buffer
[
MMU_TX_SIZE
];
#if HAS_LCD_MENU && ENABLED(MMU2_MENUS)
...
...
This diff is collapsed.
Click to expand it.
Marlin/src/feature/prusa_MMU2/mmu2.h
+
9
−
1
View file @
e02b0667
...
...
@@ -27,6 +27,14 @@
#include
"../runout.h"
#endif
#if SERIAL_USB
#define MMU_RX_SIZE 256
#define MMU_TX_SIZE 256
#else
#define MMU_RX_SIZE 16
#define MMU_TX_SIZE 16
#endif
struct
E_Step
;
class
MMU2
{
...
...
@@ -79,7 +87,7 @@ private:
static
volatile
bool
finda_runout_valid
;
static
int16_t
version
,
buildnr
;
static
millis_t
last_request
,
next_P0_request
;
static
char
rx_buffer
[
16
],
tx_buffer
[
16
];
static
char
rx_buffer
[
MMU_RX_SIZE
],
tx_buffer
[
MMU_TX_SIZE
];
static
inline
void
set_runout_valid
(
const
bool
valid
)
{
finda_runout_valid
=
valid
;
...
...
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