Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kestrel Collaboration
Kestrel Firmware
serial
Commits
418c6ac5
Commit
418c6ac5
authored
14 years ago
by
William Woodall
Browse files
Options
Download
Email Patches
Plain Diff
Cleaned up test program a bit.
parent
fc4364f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
src/test_serial.cpp
src/test_serial.cpp
+0
-17
No files found.
src/test_serial.cpp
View file @
418c6ac5
...
...
@@ -5,23 +5,6 @@
Serial
*
serial
;
std
::
string
toHex
(
std
::
string
input
)
{
std
::
stringstream
ss
;
for
(
unsigned
int
i
=
0
;
i
!=
input
.
length
();
i
++
)
{
char
temp
[
4
];
sprintf
(
temp
,
"%.2X"
,
input
[
i
]);
ss
<<
" "
;
if
(
input
[
i
]
==
0x0A
)
ss
<<
"LF"
;
else
if
(
input
[
i
]
==
0x0D
)
ss
<<
"NL"
;
else
ss
<<
input
[
i
];
ss
<<
" "
<<
std
::
hex
<<
temp
;
}
return
ss
.
str
();
};
int
main
(
int
argc
,
char
**
argv
)
{
std
::
string
port
(
"/dev/tty.usbserial-A900cfJA"
);
...
...
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