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
faacfe13
Commit
faacfe13
authored
5 years ago
by
Scott Lahteine
Browse files
Options
Downloads
Patches
Plain Diff
Tweak M105 layout
parent
d47f29bd
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Marlin/src/gcode/temperature/M105.cpp
+10
-7
10 additions, 7 deletions
Marlin/src/gcode/temperature/M105.cpp
with
10 additions
and
7 deletions
Marlin/src/gcode/temperature/M105.cpp
+
10
−
7
View file @
faacfe13
...
@@ -31,18 +31,21 @@ void GcodeSuite::M105() {
...
@@ -31,18 +31,21 @@ void GcodeSuite::M105() {
const
int8_t
target_extruder
=
get_target_extruder_from_command
();
const
int8_t
target_extruder
=
get_target_extruder_from_command
();
if
(
target_extruder
<
0
)
return
;
if
(
target_extruder
<
0
)
return
;
#if HAS_TEMP_SENSOR
SERIAL_ECHOPGM
(
MSG_OK
);
SERIAL_ECHOPGM
(
MSG_OK
);
#if HAS_TEMP_SENSOR
thermalManager
.
print_heater_states
(
target_extruder
thermalManager
.
print_heater_states
(
target_extruder
#if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT)
#if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT)
,
parser
.
boolval
(
'R'
)
,
parser
.
boolval
(
'R'
)
#endif
#endif
);
);
#else // !HAS_TEMP_SENSOR
// Hosts such as printrun send M105 to check if firmware is responding.
SERIAL_ECHOPGM
(
MSG_OK
);
SERIAL_ECHOPGM
(
" T:0"
);
#endif
SERIAL_EOL
();
SERIAL_EOL
();
#else
SERIAL_ECHOLNPGM
(
" T:0"
);
// Some hosts send M105 to test the serial connection
#endif
}
}
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