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
ba8f964e
Commit
ba8f964e
authored
Mar 16, 2015
by
MagoKimbra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Pause pin not defined.
parent
6fc9e2b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Marlin_main.cpp
MarlinKimbra/Marlin_main.cpp
+8
-8
No files found.
MarlinKimbra/Marlin_main.cpp
View file @
ba8f964e
...
...
@@ -463,7 +463,7 @@ static uint8_t tmp_extruder;
#endif
bool
Stopped
=
false
;
#if
defined(PAUSE_PIN) && PAUSE_PIN > -1
#if
def FILAMENT_END_SWITCH
bool
paused
=
false
;
bool
printing
=
false
;
#endif
...
...
@@ -3923,7 +3923,7 @@ inline void gcode_M204() {
else
target
[
E_AXIS
]
-=
FILAMENTCHANGE_FINALRETRACT
;
#endif
#if
defined(PAUSE_PIN) && PAUSE_PIN > -1
#if
def FILAMENT_END_SWITCH
paused
=
false
;
#endif
...
...
@@ -4202,7 +4202,7 @@ void process_commands()
break
;
#endif //LASERBEAM
#if
defined(PAUSE_PIN) && PAUSE_PIN > -1
#if
def FILAMENT_END_SWITCH
case
11
:
//M11 - Start printing
{
printing
=
true
;
...
...
@@ -4765,7 +4765,7 @@ void process_commands()
SERIAL_PROTOCOLPGM
(
MSG_E_MIN
);
SERIAL_PROTOCOLLN
(((
READ
(
E_MIN_PIN
)
^
E_MIN_ENDSTOP_INVERTING
)
?
MSG_ENDSTOP_HIT
:
MSG_ENDSTOP_OPEN
));
#endif
#if defined(PAUSE_PIN) && PAUSE_PIN > -1
#if defined(
FILAMENT_END_SWITCH) && defined(
PAUSE_PIN) && PAUSE_PIN > -1
SERIAL_PROTOCOLPGM
(
MSG_PAUSE_PIN
);
SERIAL_PROTOCOLLN
(((
READ
(
PAUSE_PIN
)
^
PAUSE_PIN_INVERTING
)
?
MSG_ENDSTOP_HIT
:
MSG_ENDSTOP_OPEN
));
#endif
...
...
@@ -6455,9 +6455,9 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) //default argument s
}
#endif
#if defined(PAUSE_PIN) && PAUSE_PIN > -1
#if defined(
FILAMENT_END_SWITCH) && defined(
PAUSE_PIN) && PAUSE_PIN > -1
pause
();
#endif
//defined(PAUSE_PIN) && PAUSE_PIN > -1
#endif
#if defined(CONTROLLERFAN_PIN) && CONTROLLERFAN_PIN > -1
controllerFan
();
//Check if fan should be turned on to cool stepper drivers down
...
...
@@ -6527,13 +6527,13 @@ void kill()
void
pause
()
{
#if defined(PAUSE_PIN) && PAUSE_PIN > -1
#if defined(
FILAMENT_END_SWITCH) && defined(
PAUSE_PIN) && PAUSE_PIN > -1
if
((
READ
(
PAUSE_PIN
)
^
PAUSE_PIN_INVERTING
)
&&
printing
&&
!
paused
)
{
paused
=
true
;
enquecommands_P
(
PSTR
(
"M600
\n
G4 P0
\n
G4 P0
\n
G4 P0"
));
}
#endif
// defined(PAUSE_PIN) && PAUSE_PIN > -1
#endif
}
void
Stop
()
...
...
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