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
0d101ae2
Unverified
Commit
0d101ae2
authored
Mar 29, 2023
by
fertinator
Committed by
GitHub
Mar 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[OrangePi Zero] Linux chip enable conditional statement (#904)
resolves #903
parent
6ad390fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
RF24.cpp
RF24.cpp
+4
-0
No files found.
RF24.cpp
View file @
0d101ae2
...
@@ -102,10 +102,14 @@ void RF24::csn(bool mode)
...
@@ -102,10 +102,14 @@ void RF24::csn(bool mode)
void
RF24
::
ce
(
bool
level
)
void
RF24
::
ce
(
bool
level
)
{
{
#ifndef RF24_LINUX
//Allow for 3-pin use on ATTiny
//Allow for 3-pin use on ATTiny
if
(
ce_pin
!=
csn_pin
)
{
if
(
ce_pin
!=
csn_pin
)
{
#endif
digitalWrite
(
ce_pin
,
level
);
digitalWrite
(
ce_pin
,
level
);
#ifndef RF24_LINUX
}
}
#endif
}
}
/****************************************************************************/
/****************************************************************************/
...
...
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