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
26d1cd7c
Commit
26d1cd7c
authored
Feb 15, 2016
by
MagoKimbra
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'refs/remotes/origin/master' into dev
parents
544568a2
5ad5ba2f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
Pins.h
MK/Pins.h
+3
-0
MK_Main.cpp
MK/module/MK_Main.cpp
+4
-4
No files found.
MK/Pins.h
View file @
26d1cd7c
...
...
@@ -5250,6 +5250,9 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a
#define SCK_PIN 76
#else
#define DUE_SOFTWARE_SPI
#define MOSI_PIN 51
#define MISO_PIN 50
#define SCK_PIN 52
#endif
#endif
/****************************************************************************************/
...
...
MK/module/MK_Main.cpp
View file @
26d1cd7c
...
...
@@ -6857,13 +6857,13 @@ void process_next_command() {
// Sanitize the current command:
// - Skip leading spaces
// - Bypass N[0-9][0-9]*[ ]*
// - Bypass N[
-
0-9][0-9]*[ ]*
// - Overwrite * with nul to mark the end
while
(
*
current_command
==
' '
)
++
current_command
;
if
((
*
current_command
==
'N'
||
*
current_command
==
'n'
)
&&
current_command
[
1
]
>=
'0'
&&
current_command
[
1
]
<=
'9'
)
{
current_command
+=
2
;
// skip N[0-9]
if
((
*
current_command
==
'N'
||
*
current_command
==
'n'
)
&&
((
current_command
[
1
]
>=
'0'
&&
current_command
[
1
]
<=
'9'
)
||
current_command
[
1
]
==
'-'
)
)
{
current_command
+=
2
;
// skip N[
-
0-9]
while
(
*
current_command
>=
'0'
&&
*
current_command
<=
'9'
)
++
current_command
;
// skip [0-9]*
while
(
*
current_command
==
' '
)
++
current_command
;
while
(
*
current_command
==
' '
)
++
current_command
;
// skip [ ]*
}
char
*
starpos
=
strchr
(
current_command
,
'*'
);
// * should always be the last parameter
if
(
starpos
)
while
(
*
starpos
==
' '
||
*
starpos
==
'*'
)
*
starpos
--
=
'\0'
;
// nullify '*' and ' '
...
...
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