Skip to content

Commit

Permalink
Improved indentation and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Avamander authored Feb 11, 2020
1 parent 9f55c0c commit 42cf6dd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions RF24.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@


#if ARDUINO_API_VERSION >= 10000 && !defined(__DOXYGEN__)
inline void digitalWrite(uint8_t pin, bool val) {
digitalWrite(pin, val ? HIGH : LOW);
inline void digitalWrite(uint8_t pin, bool value)
{
digitalWrite(pin, value ? HIGH : LOW);
}
#endif

Expand All @@ -23,7 +24,7 @@ void RF24::csn(bool mode)
{
#if defined(RF24_TINY)
if (ce_pin != csn_pin) {
digitalWrite(csn_pin,mode);
digitalWrite(csn_pin, mode);
}
else {
if (mode == HIGH) {
Expand Down

0 comments on commit 42cf6dd

Please sign in to comment.