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
744b1137
Commit
744b1137
authored
Apr 26, 2016
by
MagoKimbra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Serial Protocol
parent
93bf0686
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
86 additions
and
59 deletions
+86
-59
MK_Main.cpp
MK/module/MK_Main.cpp
+7
-7
dogm_lcd_implementation.h
MK/module/lcd/dogm_lcd_implementation.h
+74
-46
ultralcd.cpp
MK/module/lcd/ultralcd.cpp
+1
-1
ultralcd_implementation_hitachi_HD44780.h
MK/module/lcd/ultralcd_implementation_hitachi_HD44780.h
+2
-3
Nextion_lcd.cpp
MK/module/nextion/Nextion_lcd.cpp
+2
-2
No files found.
MK/module/MK_Main.cpp
View file @
744b1137
...
...
@@ -3385,7 +3385,7 @@ inline void gcode_G28() {
#if ENABLED(ULTIPANEL)
ECHO_LM
(
DB
,
"--LEVEL PLATE SCRIPT--"
);
while
(
!
lcd_clicked
())
{
idle
(
true
);
idle
();
}
saved_feedrate
=
feedrate
;
saved_feedrate_multiplier
=
feedrate_multiplier
;
...
...
@@ -3425,7 +3425,7 @@ inline void gcode_G28() {
do_blocking_move_to
(
LEFT_PROBE_BED_POSITION
,
FRONT_PROBE_BED_POSITION
,
current_position
[
Z_AXIS
]);
do_blocking_move_to
(
current_position
[
X_AXIS
],
current_position
[
Y_AXIS
],
Z_MIN_POS
);
while
(
!
lcd_clicked
())
{
idle
(
true
);
idle
();
}
// PROBE SECOND POINT
...
...
@@ -3434,7 +3434,7 @@ inline void gcode_G28() {
do_blocking_move_to
(
RIGHT_PROBE_BED_POSITION
,
FRONT_PROBE_BED_POSITION
,
current_position
[
Z_AXIS
]);
do_blocking_move_to
(
current_position
[
X_AXIS
],
current_position
[
Y_AXIS
],
Z_MIN_POS
);
while
(
!
lcd_clicked
())
{
idle
(
true
);
idle
();
}
// PROBE THIRD POINT
...
...
@@ -3443,7 +3443,7 @@ inline void gcode_G28() {
do_blocking_move_to
(
RIGHT_PROBE_BED_POSITION
,
BACK_PROBE_BED_POSITION
,
current_position
[
Z_AXIS
]);
do_blocking_move_to
(
current_position
[
X_AXIS
],
current_position
[
Y_AXIS
],
Z_MIN_POS
);
while
(
!
lcd_clicked
())
{
idle
(
true
);
idle
();
}
// PROBE FOURTH POINT
...
...
@@ -3452,7 +3452,7 @@ inline void gcode_G28() {
do_blocking_move_to
(
LEFT_PROBE_BED_POSITION
,
BACK_PROBE_BED_POSITION
,
current_position
[
Z_AXIS
]);
do_blocking_move_to
(
current_position
[
X_AXIS
],
current_position
[
Y_AXIS
],
Z_MIN_POS
);
while
(
!
lcd_clicked
())
{
idle
(
true
);
idle
();
}
// PROBE CENTER
...
...
@@ -3461,7 +3461,7 @@ inline void gcode_G28() {
do_blocking_move_to
(((
X_MAX_POS
)
-
(
X_MIN_POS
))
/
2
,
((
Y_MAX_POS
)
-
(
Y_MIN_POS
))
/
2
,
current_position
[
Z_AXIS
]);
do_blocking_move_to
(
current_position
[
X_AXIS
],
current_position
[
Y_AXIS
],
Z_MIN_POS
);
while
(
!
lcd_clicked
())
{
idle
(
true
);
idle
();
}
// FINISH MANUAL BED LEVEL
...
...
@@ -6978,7 +6978,7 @@ inline void gcode_M503() {
KEEPALIVE_STATE
(
PAUSED_FOR_USER
);
LCD_ALERTMESSAGEPGM
(
MSG_FILAMENTCHANGE
);
while
(
!
lcd_clicked
())
{
idle
(
true
);
idle
();
if
((
millis
()
-
last_set
>
60000
)
&&
cnt
<=
FILAMENTCHANGE_PRINTEROFF
)
beep
=
true
;
if
(
cnt
>=
FILAMENTCHANGE_PRINTEROFF
&&
!
sleep
)
{
disable_all_heaters
();
...
...
MK/module/lcd/dogm_lcd_implementation.h
View file @
744b1137
This diff is collapsed.
Click to expand it.
MK/module/lcd/ultralcd.cpp
View file @
744b1137
...
...
@@ -1716,7 +1716,7 @@ static void menu_action_function(menuFunc_t func) { (*func)(); }
char
*
c
;
sprintf_P
(
cmd
,
PSTR
(
"M23 %s"
),
longFilename
);
for
(
c
=
&
cmd
[
4
];
*
c
;
c
++
)
*
c
=
tolower
(
*
c
);
enqueuecommand
(
cmd
);
enqueue
_and_echo_
command
(
cmd
);
enqueue_and_echo_commands_P
(
PSTR
(
"M24"
));
lcd_return_to_status
();
}
...
...
MK/module/lcd/ultralcd_implementation_hitachi_HD44780.h
View file @
744b1137
...
...
@@ -726,11 +726,11 @@ static void lcd_implementation_status_screen() {
#endif // LCD_WIDTH > 19 && SDSUPPORT
lcd
.
setCursor
(
LCD_WIDTH
-
6
,
2
);
if
(
print_job_start_ms
!=
0
)
{
uint16_t
time
=
print_job_timer
.
duration
()
/
60
;
if
(
time
!=
0
)
{
#if HAS(LCD_POWER_SENSOR)
if
(
millis
()
<
print_millis
+
1000
)
{
lcd
.
print
(
LCD_STR_CLOCK
[
0
]);
uint16_t
time
=
millis
()
/
60000
-
print_job_start_ms
/
60000
;
lcd
.
print
(
itostr2
(
time
/
60
));
lcd
.
print
(
':'
);
lcd
.
print
(
itostr2
(
time
%
60
));
...
...
@@ -741,7 +741,6 @@ static void lcd_implementation_status_screen() {
}
#else
lcd
.
print
(
LCD_STR_CLOCK
[
0
]);
uint16_t
time
=
millis
()
/
60000
-
print_job_start_ms
/
60000
;
lcd
.
print
(
itostr2
(
time
/
60
));
lcd
.
print
(
':'
);
lcd
.
print
(
itostr2
(
time
%
60
));
...
...
MK/module/nextion/Nextion_lcd.cpp
View file @
744b1137
...
...
@@ -276,7 +276,7 @@
char
*
c
;
sprintf_P
(
cmd
,
PSTR
(
"M23 %s"
),
filename
);
for
(
c
=
&
cmd
[
4
];
*
c
;
c
++
)
*
c
=
tolower
(
*
c
);
enqueuecommand
(
cmd
);
enqueue
_and_echo_
command
(
cmd
);
enqueue_and_echo_commands_P
(
PSTR
(
"M24"
));
setpageInfo
();
}
...
...
@@ -647,7 +647,7 @@
NPlay
.
setPic
(
17
);
// Estimate End Time
uint16_t
time
=
(
millis
()
-
print_job_start_ms
)
/
6000
0
;
uint16_t
time
=
print_job_timer
.
duration
()
/
6
0
;
uint16_t
end_time
=
(
time
*
(
100
-
card
.
percentDone
()))
/
card
.
percentDone
();
if
(
end_time
>
(
60
*
23
))
{
lcd_setstatus
(
"End --:--"
);
...
...
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