Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MarlinKimbra
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
MarlinKimbra
Commits
a2bbff0f
Commit
a2bbff0f
authored
Mar 24, 2015
by
MagoKimbra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix filament_changing
parent
046d5eff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
15 deletions
+23
-15
Marlin_main.cpp
MarlinKimbra/Marlin_main.cpp
+23
-15
No files found.
MarlinKimbra/Marlin_main.cpp
View file @
a2bbff0f
...
@@ -331,7 +331,7 @@ uint8_t debugLevel = 0;
...
@@ -331,7 +331,7 @@ uint8_t debugLevel = 0;
int
EtoPPressure
=
0
;
int
EtoPPressure
=
0
;
#endif //BARICUDA
#endif //BARICUDA
#if
defined(FILAMENTCHANGEENABLE) || defined(IDLE_OOZING_PREVENT)
#if
def FILAMENTCHANGEENABLE
bool
filament_changing
=
false
;
bool
filament_changing
=
false
;
#endif
#endif
...
@@ -6563,26 +6563,34 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) //default argument s
...
@@ -6563,26 +6563,34 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) //default argument s
#endif
#endif
#ifdef IDLE_OOZING_PREVENT
#ifdef IDLE_OOZING_PREVENT
if
(
!
debugDryrun
()
&&
!
axis_is_moving
&&
!
filament_changing
&&
(
millis
()
-
axis_last_activity
)
>
IDLE_OOZING_SECONDS
*
1000
&&
degHotend
(
active_extruder
)
>
IDLE_OOZING_MINTEMP
)
{
if
(
!
debugDryrun
()
&&
!
axis_is_moving
&&
(
millis
()
-
axis_last_activity
)
>
IDLE_OOZING_SECONDS
*
1000
&&
degHotend
(
active_extruder
)
>
IDLE_OOZING_MINTEMP
)
{
#ifdef FILAMENTCHANGEENABLE
if
(
!
filament_changing
)
#endif
IDLE_OOZING_retract
(
true
);
IDLE_OOZING_retract
(
true
);
}
}
#endif
#endif
#ifdef EXTRUDER_RUNOUT_PREVENT
#ifdef EXTRUDER_RUNOUT_PREVENT
if
(
!
debugDryrun
()
&&
!
axis_is_moving
&&
!
filament_changing
&&
(
millis
()
-
axis_last_activity
)
>
EXTRUDER_RUNOUT_SECONDS
*
1000
&&
degHotend
(
active_extruder
)
>
EXTRUDER_RUNOUT_MINTEMP
)
if
(
!
debugDryrun
()
&&
!
axis_is_moving
&&
(
millis
()
-
axis_last_activity
)
>
EXTRUDER_RUNOUT_SECONDS
*
1000
&&
degHotend
(
active_extruder
)
>
EXTRUDER_RUNOUT_MINTEMP
)
{
{
bool
oldstatus
=
READ
(
E0_ENABLE_PIN
);
#ifdef FILAMENTCHANGEENABLE
enable_e0
();
if
(
!
filament_changing
)
float
oldepos
=
current_position
[
E_AXIS
];
#endif
float
oldedes
=
destination
[
E_AXIS
];
{
plan_buffer_line
(
destination
[
X_AXIS
],
destination
[
Y_AXIS
],
destination
[
Z_AXIS
],
bool
oldstatus
=
READ
(
E0_ENABLE_PIN
);
destination
[
E_AXIS
]
+
EXTRUDER_RUNOUT_EXTRUDE
*
EXTRUDER_RUNOUT_ESTEPS
/
axis_steps_per_unit
[
active_extruder
+
3
],
enable_e0
();
EXTRUDER_RUNOUT_SPEED
/
60.
*
EXTRUDER_RUNOUT_ESTEPS
/
axis_steps_per_unit
[
active_extruder
+
3
],
active_extruder
,
active_driver
);
float
oldepos
=
current_position
[
E_AXIS
];
current_position
[
E_AXIS
]
=
oldepos
;
float
oldedes
=
destination
[
E_AXIS
];
destination
[
E_AXIS
]
=
oldedes
;
plan_buffer_line
(
destination
[
X_AXIS
],
destination
[
Y_AXIS
],
destination
[
Z_AXIS
],
plan_set_e_position
(
oldepos
);
destination
[
E_AXIS
]
+
EXTRUDER_RUNOUT_EXTRUDE
*
EXTRUDER_RUNOUT_ESTEPS
/
axis_steps_per_unit
[
E_AXIS
+
active_extruder
],
st_synchronize
();
EXTRUDER_RUNOUT_SPEED
/
60
*
EXTRUDER_RUNOUT_ESTEPS
/
axis_steps_per_unit
[
E_AXIS
+
active_extruder
],
active_extruder
,
active_driver
);
WRITE
(
E0_ENABLE_PIN
,
oldstatus
);
current_position
[
E_AXIS
]
=
oldepos
;
destination
[
E_AXIS
]
=
oldedes
;
plan_set_e_position
(
oldepos
);
st_synchronize
();
WRITE
(
E0_ENABLE_PIN
,
oldstatus
);
}
}
}
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment