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
aa7a7c64
Commit
aa7a7c64
authored
Jun 25, 2011
by
maniacbug
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaned up some reinterpret casts to use new-style casts
parent
8d5f020c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
RF24.cpp
RF24.cpp
+3
-3
No files found.
RF24.cpp
View file @
aa7a7c64
...
...
@@ -106,7 +106,7 @@ uint8_t RF24::write_payload(const void* buf, uint8_t len)
{
uint8_t
status
;
const
uint8_t
*
current
=
(
const
uint8_t
*
)
buf
;
const
uint8_t
*
current
=
reinterpret_cast
<
const
uint8_t
*>
(
buf
)
;
csn
(
LOW
);
status
=
SPI
.
transfer
(
W_TX_PAYLOAD
);
...
...
@@ -127,7 +127,7 @@ uint8_t RF24::write_payload(const void* buf, uint8_t len)
uint8_t
RF24
::
read_payload
(
void
*
buf
,
uint8_t
len
)
{
uint8_t
status
;
uint8_t
*
current
=
(
uint8_t
*
)
buf
;
uint8_t
*
current
=
reinterpret_cast
<
uint8_t
*>
(
buf
)
;
csn
(
LOW
);
status
=
SPI
.
transfer
(
R_RX_PAYLOAD
);
...
...
@@ -577,7 +577,7 @@ void RF24::enableAckPayload(void)
void
RF24
::
writeAckPayload
(
uint8_t
pipe
,
const
void
*
buf
,
uint8_t
len
)
{
const
uint8_t
*
current
=
(
const
uint8_t
*
)
buf
;
const
uint8_t
*
current
=
reinterpret_cast
<
const
uint8_t
*>
(
buf
)
;
csn
(
LOW
);
SPI
.
transfer
(
W_ACK_PAYLOAD
|
(
pipe
&
B111
)
);
...
...
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