Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RF24
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
RF24
Commits
da0c5943
Commit
da0c5943
authored
Mar 26, 2015
by
TMRh20
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change printf to serial.print in transfer example
parent
44458423
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/Transfer/Transfer.ino
examples/Transfer/Transfer.ino
+2
-2
No files found.
examples/Transfer/Transfer.ino
View file @
da0c5943
...
...
@@ -99,8 +99,8 @@ void loop(void){
float
numBytes
=
cycles
*
32
;
float
rate
=
numBytes
/
(
stopTime
-
startTime
);
Serial
.
print
(
"Transfer complete at "
);
Serial
.
print
(
rate
);
printf
(
" KB/s
\n\r
"
);
Serial
.
print
(
counter
);
Serial
.
print
(
" of "
);
Serial
.
print
(
cycles
);
printf
(
" Packets Failed to Send
\n\r
"
);
Serial
.
print
(
"Transfer complete at "
);
Serial
.
print
(
rate
);
Serial
.
println
(
" KB/s
"
);
Serial
.
print
(
counter
);
Serial
.
print
(
" of "
);
Serial
.
print
(
cycles
);
Serial
.
println
(
" Packets Failed to Send
"
);
counter
=
0
;
}
...
...
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