Skip to content

Commit

Permalink
remove useless ce() call
Browse files Browse the repository at this point in the history
resolves #986
  • Loading branch information
2bndy5 committed Jul 15, 2024
1 parent bae5111 commit 4b57a33
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions RF24.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1324,10 +1324,10 @@ bool RF24::writeBlocking(const void* buf, uint8_t len, uint32_t timeout)

void RF24::reUseTX()
{
ce(LOW);
write_register(NRF_STATUS, _BV(MAX_RT)); //Clear max retry flag
write_register(REUSE_TX_PL, RF24_NOP, true);
ce(LOW); //Re-Transfer packet
ce(HIGH);
ce(HIGH); //Re-Transfer packet
}

/****************************************************************************/
Expand Down Expand Up @@ -1992,9 +1992,8 @@ void RF24::startConstCarrier(rf24_pa_dbm_e level, uint8_t channel)
IF_RF24_DEBUG(printf_P(PSTR("RF_SETUP=%02x\r\n"), read_register(RF_SETUP)));
ce(HIGH);
if (isPVariant()) {
delay(1); // datasheet says 1 ms is ok in this instance
ce(LOW);
reUseTX();
delay(1); // datasheet says 1 ms is ok in this instance
reUseTX(); // CE gets toggled here
}
}

Expand Down

0 comments on commit 4b57a33

Please sign in to comment.