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
3a7efd03
Commit
3a7efd03
authored
May 12, 2016
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Protect lasers from running when coolers are stopped
parent
181e4039
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
MK_Main.cpp
MK/module/MK_Main.cpp
+6
-0
temperature.cpp
MK/module/temperature/temperature.cpp
+8
-0
No files found.
MK/module/MK_Main.cpp
View file @
3a7efd03
...
@@ -5395,6 +5395,12 @@ inline void gcode_M81() {
...
@@ -5395,6 +5395,12 @@ inline void gcode_M81() {
#if ENABLED(LASERBEAM)
#if ENABLED(LASERBEAM)
laser_ttl_modulation
=
0
;
laser_ttl_modulation
=
0
;
#endif
#endif
#ifdef LASER
laser_extinguish
();
#endif
#ifdef LASER_PERIPHERALS
laser_peripherals_off
();
#endif
delay_ms
(
1000
);
// Wait 1 second before switching off
delay_ms
(
1000
);
// Wait 1 second before switching off
#if HAS(SUICIDE)
#if HAS(SUICIDE)
st_synchronize
();
st_synchronize
();
...
...
MK/module/temperature/temperature.cpp
View file @
3a7efd03
...
@@ -1653,6 +1653,14 @@ void disable_all_heaters() {
...
@@ -1653,6 +1653,14 @@ void disable_all_heaters() {
void
disable_all_coolers
()
{
void
disable_all_coolers
()
{
setTargetCooler
(
0
);
setTargetCooler
(
0
);
// if cooler go down the print job is stopped
print_job_timer
.
stop
();
#if ENABLED(LASER)
// No laser firing with no coolers running! (paranoia)
laser_extinguish
();
#endif
#if HAS(TEMP_COOLER)
#if HAS(TEMP_COOLER)
target_temperature_cooler
=
0
;
target_temperature_cooler
=
0
;
setPwmCooler
(
0
);
setPwmCooler
(
0
);
...
...
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