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
66770791
Commit
66770791
authored
Mar 23, 2016
by
MagoKimbra
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'refs/remotes/origin/master' into dev
parents
bb706194
0dc36322
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
firmware_test.cpp
MK/module/fwtest/firmware_test.cpp
+11
-11
No files found.
MK/module/fwtest/firmware_test.cpp
View file @
66770791
...
...
@@ -19,7 +19,7 @@ void FirmwareTest() {
ECHO_EV
(
MSG_FWTEST_YES_NO
);
serial_answer
=
' '
;
while
(
serial_answer
!=
'y'
&&
serial_answer
!=
'Y'
&&
serial_answer
!=
'n'
&&
serial_answer
!=
'N'
)
{
serial_answer
=
M
Y
SERIAL
.
read
();
serial_answer
=
M
K
SERIAL
.
read
();
}
if
(
serial_answer
==
'y'
||
serial_answer
==
'Y'
)
{
ECHO_EV
(
MSG_FWTEST_03
);
...
...
@@ -55,7 +55,7 @@ void FirmwareTest() {
ECHO_EV
(
MSG_FWTEST_YES
);
serial_answer
=
' '
;
while
(
serial_answer
!=
'y'
&&
serial_answer
!=
'Y'
&&
!
(
READ
(
X_MIN_PIN
)
^
X_MIN_ENDSTOP_INVERTING
))
{
serial_answer
=
M
Y
SERIAL
.
read
();
serial_answer
=
M
K
SERIAL
.
read
();
}
if
(
READ
(
X_MIN_PIN
)
^
X_MIN_ENDSTOP_INVERTING
)
{
ECHO_M
(
"MIN ENDSTOP X: "
);
...
...
@@ -95,7 +95,7 @@ void FirmwareTest() {
ECHO_EV
(
MSG_FWTEST_YES
);
serial_answer
=
' '
;
while
(
serial_answer
!=
'y'
&&
serial_answer
!=
'Y'
&&
!
(
READ
(
X_MAX_PIN
)
^
X_MAX_ENDSTOP_INVERTING
))
{
serial_answer
=
M
Y
SERIAL
.
read
();
serial_answer
=
M
K
SERIAL
.
read
();
}
if
(
READ
(
X_MAX_PIN
)
^
X_MAX_ENDSTOP_INVERTING
)
{
ECHO_M
(
"MAX ENDSTOP X: "
);
...
...
@@ -149,7 +149,7 @@ void FirmwareTest() {
ECHO_EV
(
MSG_FWTEST_YES
);
serial_answer
=
' '
;
while
(
serial_answer
!=
'y'
&&
serial_answer
!=
'Y'
&&
!
(
READ
(
Y_MIN_PIN
)
^
Y_MIN_ENDSTOP_INVERTING
))
{
serial_answer
=
M
Y
SERIAL
.
read
();
serial_answer
=
M
K
SERIAL
.
read
();
}
if
(
READ
(
Y_MIN_PIN
)
^
Y_MIN_ENDSTOP_INVERTING
)
{
ECHO_M
(
"MIN ENDSTOP Y: "
);
...
...
@@ -189,7 +189,7 @@ void FirmwareTest() {
ECHO_EV
(
MSG_FWTEST_YES
);
serial_answer
=
' '
;
while
(
serial_answer
!=
'y'
&&
serial_answer
!=
'Y'
&&
!
(
READ
(
Y_MAX_PIN
)
^
Y_MAX_ENDSTOP_INVERTING
))
{
serial_answer
=
M
Y
SERIAL
.
read
();
serial_answer
=
M
K
SERIAL
.
read
();
}
if
(
READ
(
Y_MAX_PIN
)
^
Y_MAX_ENDSTOP_INVERTING
)
{
ECHO_M
(
"MAX ENDSTOP Y: "
);
...
...
@@ -243,7 +243,7 @@ void FirmwareTest() {
ECHO_EV
(
MSG_FWTEST_YES
);
serial_answer
=
' '
;
while
(
serial_answer
!=
'y'
&&
serial_answer
!=
'Y'
&&
!
(
READ
(
Z_MIN_PIN
)
^
Z_MIN_ENDSTOP_INVERTING
))
{
serial_answer
=
M
Y
SERIAL
.
read
();
serial_answer
=
M
K
SERIAL
.
read
();
}
if
(
READ
(
Z_MIN_PIN
)
^
Z_MIN_ENDSTOP_INVERTING
)
{
ECHO_M
(
"MIN ENDSTOP Z: "
);
...
...
@@ -283,7 +283,7 @@ void FirmwareTest() {
ECHO_EV
(
MSG_FWTEST_YES
);
serial_answer
=
' '
;
while
(
serial_answer
!=
'y'
&&
serial_answer
!=
'Y'
&&
!
(
READ
(
Z_MAX_PIN
)
^
Z_MAX_ENDSTOP_INVERTING
))
{
serial_answer
=
M
Y
SERIAL
.
read
();
serial_answer
=
M
K
SERIAL
.
read
();
}
if
(
READ
(
Z_MAX_PIN
)
^
Z_MAX_ENDSTOP_INVERTING
)
{
ECHO_M
(
"MAX ENDSTOP Z: "
);
...
...
@@ -326,7 +326,7 @@ void FirmwareTest() {
ECHO_EV
(
MSG_FWTEST_YES
);
serial_answer
=
' '
;
while
(
serial_answer
!=
'y'
&&
serial_answer
!=
'Y'
)
{
serial_answer
=
M
Y
SERIAL
.
read
();
serial_answer
=
M
K
SERIAL
.
read
();
}
ECHO_EV
(
MSG_FWTEST_04
);
ECHO_EM
(
" "
);
...
...
@@ -339,7 +339,7 @@ void FirmwareTest() {
ECHO_EV
(
MSG_FWTEST_YES_NO
);
serial_answer
=
' '
;
while
(
serial_answer
!=
'y'
&&
serial_answer
!=
'Y'
&&
serial_answer
!=
'n'
&&
serial_answer
!=
'N'
)
{
serial_answer
=
M
Y
SERIAL
.
read
();
serial_answer
=
M
K
SERIAL
.
read
();
}
if
(
serial_answer
==
'y'
||
serial_answer
==
'Y'
)
{
ECHO_EM
(
"MOTOR X "
);
...
...
@@ -371,7 +371,7 @@ void FirmwareTest() {
ECHO_EV
(
MSG_FWTEST_YES_NO
);
serial_answer
=
' '
;
while
(
serial_answer
!=
'y'
&&
serial_answer
!=
'Y'
&&
serial_answer
!=
'n'
&&
serial_answer
!=
'N'
)
{
serial_answer
=
M
Y
SERIAL
.
read
();
serial_answer
=
M
K
SERIAL
.
read
();
}
if
(
serial_answer
==
'y'
||
serial_answer
==
'Y'
)
{
ECHO_EM
(
"MOTOR Y "
);
...
...
@@ -403,7 +403,7 @@ void FirmwareTest() {
ECHO_EV
(
MSG_FWTEST_YES_NO
);
serial_answer
=
' '
;
while
(
serial_answer
!=
'y'
&&
serial_answer
!=
'Y'
&&
serial_answer
!=
'n'
&&
serial_answer
!=
'N'
)
{
serial_answer
=
M
Y
SERIAL
.
read
();
serial_answer
=
M
K
SERIAL
.
read
();
}
if
(
serial_answer
==
'y'
||
serial_answer
==
'Y'
)
{
ECHO_EM
(
"MOTOR Z "
);
...
...
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