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
36b5c768
Commit
36b5c768
authored
Mar 06, 2015
by
MagoKimbra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Pause Pin
parent
41d26978
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
Configuration.h
MarlinKimbra/Configuration.h
+3
-0
Marlin_main.cpp
MarlinKimbra/Marlin_main.cpp
+5
-1
language.h
MarlinKimbra/language.h
+1
-0
No files found.
MarlinKimbra/Configuration.h
View file @
36b5c768
...
...
@@ -683,6 +683,9 @@ your extruder heater takes 2 minutes to hit the target on heating.
// Setting firmware for filament end switch
//#define FILAMENT_END_SWITCH
#ifdef FILAMENT_END_SWITCH
const
bool
PAUSE_PIN_INVERTING
=
false
;
// set to true to invert the logic of the pause pin.
#endif
// define laser beam support
//#define LASERBEAM
...
...
MarlinKimbra/Marlin_main.cpp
View file @
36b5c768
...
...
@@ -4643,6 +4643,10 @@ 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
SERIAL_PROTOCOLPGM
(
MSG_PAUSE_PIN
);
SERIAL_PROTOCOLLN
(((
READ
(
PAUSE_PIN
)
^
PAUSE_PIN_INVERTING
)
?
MSG_ENDSTOP_HIT
:
MSG_ENDSTOP_OPEN
));
#endif
}
break
;
case
120
:
//M120 - Disable Endstop
...
...
@@ -6398,7 +6402,7 @@ void kill()
void
pause
()
{
#if defined(PAUSE_PIN) && PAUSE_PIN > -1
if
(
READ
(
PAUSE_PIN
)
==
0
&&
printing
&&
!
paused
)
if
(
(
READ
(
PAUSE_PIN
)
^
PAUSE_PIN_INVERTING
)
&&
printing
&&
!
paused
)
{
paused
=
true
;
enquecommand
(
"M600"
);
...
...
MarlinKimbra/language.h
View file @
36b5c768
...
...
@@ -116,6 +116,7 @@
#define MSG_Z_MIN "z_min: "
#define MSG_Z_MAX "z_max: "
#define MSG_E_MIN "e_min: "
#define MSG_PAUSE_PIN "pause pin: "
#define MSG_M119_REPORT "Reporting endstop status"
#define MSG_ENDSTOP_HIT "TRIGGERED"
#define MSG_ENDSTOP_OPEN "open"
...
...
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