Reduce delays in startWrite down to only required delays

This commit is contained in:
maniacbug 2011-12-19 06:19:25 -08:00
parent 26ea4583cd
commit 50b18a9c7d
1 changed files with 1 additions and 2 deletions

View File

@ -481,7 +481,7 @@ void RF24::startWrite( const void* buf, uint8_t len )
{
// Transmitter power-up
write_register(CONFIG, ( read_register(CONFIG) | _BV(PWR_UP) ) & ~_BV(PRIM_RX) );
delay(2);
delayMicroseconds(150);
// Send the payload
write_payload( buf, len );
@ -489,7 +489,6 @@ void RF24::startWrite( const void* buf, uint8_t len )
// Allons!
ce(HIGH);
delayMicroseconds(15);
delay(2);
ce(LOW);
}