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
8e6da881
Commit
8e6da881
authored
May 21, 2016
by
MagoKimbra
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'refs/remotes/origin/master' into dev
parents
315cf588
b9104098
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ultralcd.cpp
MK/module/lcd/ultralcd.cpp
+5
-5
No files found.
MK/module/lcd/ultralcd.cpp
View file @
8e6da881
...
...
@@ -1302,7 +1302,7 @@ static void lcd_control_menu() {
static
void
lcd_stats_menu
()
{
char
row
[
30
];
int
day
=
print
er_usage_seconds
/
60
/
60
/
24
,
hours
=
(
printer_usage_seconds
/
60
/
60
)
%
24
,
minutes
=
(
printer_usage_seconds
/
60
)
%
60
;
int
day
=
print
_job_counter
.
data
.
printer_usage_seconds
/
60
/
60
/
24
,
hours
=
(
print_job_counter
.
data
.
printer_usage_seconds
/
60
/
60
)
%
24
,
minutes
=
(
print_job_counter
.
data
.
printer_usage_seconds
/
60
)
%
60
;
sprintf_P
(
row
,
PSTR
(
MSG_ONFOR
" %id %ih %im"
),
day
,
hours
,
minutes
);
LCD_Printpos
(
0
,
0
);
lcd_print
(
row
);
#if HAS(POWER_CONSUMPTION_SENSOR)
...
...
@@ -1310,10 +1310,10 @@ static void lcd_stats_menu() {
LCD_Printpos
(
0
,
1
);
lcd_print
(
row
);
#endif
char
lung
[
30
];
unsigned
int
kmeter
=
(
long
)
printer_usage_filament
/
1000
/
1000
,
meter
=
((
long
)
printer_usage_filament
/
1000
)
%
1000
,
centimeter
=
((
long
)
printer_usage_filament
/
10
)
%
100
,
millimeter
=
((
long
)
printer_usage_filament
)
%
10
;
unsigned
int
kmeter
=
(
long
)
print
_job_counter
.
data
.
print
er_usage_filament
/
1000
/
1000
,
meter
=
((
long
)
print
_job_counter
.
data
.
print
er_usage_filament
/
1000
)
%
1000
,
centimeter
=
((
long
)
print
_job_counter
.
data
.
print
er_usage_filament
/
10
)
%
100
,
millimeter
=
((
long
)
print
_job_counter
.
data
.
print
er_usage_filament
)
%
10
;
sprintf_P
(
lung
,
PSTR
(
MSG_FILCONSUMED
"%i Km %i m %i cm %i mm"
),
kmeter
,
meter
,
centimeter
,
millimeter
);
LCD_Printpos
(
0
,
2
);
lcd_print
(
lung
);
if
(
LCD_CLICKED
)
lcd_goto_menu
(
lcd_main_menu
);
...
...
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