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
46ec8357
Commit
46ec8357
authored
9 years ago
by
Simone Primarosa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for see the Power Consumption
parent
639e7031
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
9 deletions
+23
-9
ultralcd_implementation_hitachi_HD44780.h
MarlinKimbra/ultralcd_implementation_hitachi_HD44780.h
+23
-9
No files found.
MarlinKimbra/ultralcd_implementation_hitachi_HD44780.h
View file @
46ec8357
...
...
@@ -586,13 +586,27 @@ static void lcd_implementation_status_screen()
#endif //SDSUPPORT
#endif //LCD_WIDTH > 19
lcd
.
setCursor
(
LCD_WIDTH
-
6
,
2
);
lcd
.
print
(
LCD_STR_CLOCK
[
0
]);
if
(
starttime
!=
0
)
{
uint16_t
time
=
millis
()
/
60000
-
starttime
/
60000
;
lcd
.
print
(
itostr2
(
time
/
60
));
lcd
.
print
(
':'
);
lcd
.
print
(
itostr2
(
time
%
60
));
#if HAS_LCD_POWER_SENSOR
if
(
millis
()
<
print_millis
+
1000
)
{
lcd
.
print
(
LCD_STR_CLOCK
[
0
]);
uint16_t
time
=
millis
()
/
60000
-
starttime
/
60000
;
lcd
.
print
(
itostr2
(
time
/
60
));
lcd
.
print
(
':'
);
lcd
.
print
(
itostr2
(
time
%
60
));
}
else
{
lcd
.
print
(
itostr4
(
power_consumption_hour
-
startpower
));
lcd
.
print
(
'
Wh
'
);
}
#else
lcd
.
print
(
LCD_STR_CLOCK
[
0
]);
uint16_t
time
=
millis
()
/
60000
-
starttime
/
60000
;
lcd
.
print
(
itostr2
(
time
/
60
));
lcd
.
print
(
':'
);
lcd
.
print
(
itostr2
(
time
%
60
));
#endif
}
else
{
lcd_printPGM
(
PSTR
(
"--:--"
));
...
...
@@ -627,12 +641,12 @@ static void lcd_implementation_status_screen()
#endif //LCD_PROGRESS_BAR
//Display both Status message line and Filament display on the last line
#if
(HAS_FILAMENT_SENSOR && defined(FILAMENT_LCD_DISPLAY)) || (HAS_POWER_CONSUMPTION_SENSOR && defined(POWER_CONSUMPTION_LCD_DISPLAY))
#if
HAS_LCD_FILAMENT_SENSOR || HAS_LCD_POWER_SENSOR
if
(
millis
()
<
message_millis
+
5000
)
{
//Display both Status message line and Filament display on the last line
lcd_print
(
lcd_status_message
);
}
#if HAS_
POWER_CONSUMPTION_SENSOR && defined(POWER_CONSUMPTION_LCD_DISPLAY)
#if HAS_
FILAMENT_SENSOR && defined(FILAMENT_LCD_DISPLAY)
#if HAS_
LCD_POWER_SENSOR
#if HAS_
LCD_FILAMENT_SENSOR
else
if
(
millis
()
<
message_millis
+
10000
)
#else
else
...
...
@@ -645,7 +659,7 @@ static void lcd_implementation_status_screen()
lcd_printPGM
(
PSTR
(
"Wh"
));
}
#endif
#if HAS_
FILAMENT_SENSOR && defined(FILAMENT_LCD_DISPLAY)
#if HAS_
LCD_FILAMENT_SENSOR
else
{
lcd_printPGM
(
PSTR
(
"D:"
));
lcd
.
print
(
ftostr12ns
(
filament_width_meas
));
...
...
This diff is collapsed.
Click to expand it.
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