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
34b17d4a
Commit
34b17d4a
authored
9 years ago
by
Scott Lahteine
Browse files
Options
Downloads
Patches
Plain Diff
Reduce heater status code if no bed
parent
fc30aa9d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Marlin/dogm_lcd_implementation.h
+9
-5
9 additions, 5 deletions
Marlin/dogm_lcd_implementation.h
with
9 additions
and
5 deletions
Marlin/dogm_lcd_implementation.h
+
9
−
5
View file @
34b17d4a
...
@@ -287,9 +287,11 @@ FORCE_INLINE void _draw_centered_temp(int temp, int x, int y) {
...
@@ -287,9 +287,11 @@ FORCE_INLINE void _draw_centered_temp(int temp, int x, int y) {
}
}
FORCE_INLINE
void
_draw_heater_status
(
int
x
,
int
heater
)
{
FORCE_INLINE
void
_draw_heater_status
(
int
x
,
int
heater
)
{
#if HAS_TEMP_BED
bool
isBed
=
heater
<
0
;
bool
isBed
=
heater
<
0
;
#else
lcd_setFont
(
FONT_STATUSMENU
);
const
bool
isBed
=
false
;
#endif
_draw_centered_temp
((
isBed
?
degTargetBed
()
:
degTargetHotend
(
heater
))
+
0
.
5
,
x
,
7
);
_draw_centered_temp
((
isBed
?
degTargetBed
()
:
degTargetHotend
(
heater
))
+
0
.
5
,
x
,
7
);
...
@@ -351,8 +353,10 @@ static void lcd_implementation_status_screen() {
...
@@ -351,8 +353,10 @@ static void lcd_implementation_status_screen() {
// Extruders
// Extruders
for
(
int
i
=
0
;
i
<
EXTRUDERS
;
i
++
)
_draw_heater_status
(
5
+
i
*
25
,
i
);
for
(
int
i
=
0
;
i
<
EXTRUDERS
;
i
++
)
_draw_heater_status
(
5
+
i
*
25
,
i
);
// Heatbed
// Heated bed
if
(
EXTRUDERS
<
4
)
_draw_heater_status
(
81
,
-
1
);
#if EXTRUDERS < 4 && HAS_TEMP_BED
_draw_heater_status
(
81
,
-
1
);
#endif
// Fan
// Fan
lcd_setFont
(
FONT_STATUSMENU
);
lcd_setFont
(
FONT_STATUSMENU
);
...
...
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