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
8ff9fb6f
Commit
8ff9fb6f
authored
Apr 23, 2014
by
TMRh20
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fix before pushing last commit
- fixed mistake with changes to setPALevel prior to pushing
parent
c965f738
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
RF24.cpp
RF24.cpp
+6
-1
No files found.
RF24.cpp
View file @
8ff9fb6f
...
...
@@ -1019,12 +1019,17 @@ bool RF24::testRPD(void)
void
RF24
::
setPALevel
(
uint8_t
level
)
{
uint8_t
setup
=
read_register
(
RF_SETUP
)
&
0b11111000
;
if
(
level
>
3
){
// If invalid level, go to max PA
level
=
RF24_PA_MAX
<<
1
+
1
;
// +1 to support the SI24R1 chip extra bit
}
else
{
level
=
(
level
<<
1
)
+
1
;
// Else set level as requested
}
write_register
(
RF_SETUP
,
level
)
;
// Write it to the chip
write_register
(
RF_SETUP
,
setup
|=
level
)
;
// Write it to the chip
}
/****************************************************************************/
...
...
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