Skip to content

Commit

Permalink
[OrangePi Zero] Linux chip enable conditional statement (#904)
Browse files Browse the repository at this point in the history
resolves #903
  • Loading branch information
fertinator committed Mar 29, 2023
1 parent 6ad390f commit 0d101ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RF24.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,14 @@ void RF24::csn(bool mode)

void RF24::ce(bool level)
{
#ifndef RF24_LINUX
//Allow for 3-pin use on ATTiny
if (ce_pin != csn_pin) {
#endif
digitalWrite(ce_pin, level);
#ifndef RF24_LINUX
}
#endif
}

/****************************************************************************/
Expand Down

0 comments on commit 0d101ae

Please sign in to comment.