Commit 50b18a9c authored by maniacbug's avatar maniacbug

Reduce delays in startWrite down to only required delays

parent 26ea4583
...@@ -481,7 +481,7 @@ void RF24::startWrite( const void* buf, uint8_t len ) ...@@ -481,7 +481,7 @@ void RF24::startWrite( const void* buf, uint8_t len )
{ {
// Transmitter power-up // Transmitter power-up
write_register(CONFIG, ( read_register(CONFIG) | _BV(PWR_UP) ) & ~_BV(PRIM_RX) ); write_register(CONFIG, ( read_register(CONFIG) | _BV(PWR_UP) ) & ~_BV(PRIM_RX) );
delay(2); delayMicroseconds(150);
// Send the payload // Send the payload
write_payload( buf, len ); write_payload( buf, len );
...@@ -489,7 +489,6 @@ void RF24::startWrite( const void* buf, uint8_t len ) ...@@ -489,7 +489,6 @@ void RF24::startWrite( const void* buf, uint8_t len )
// Allons! // Allons!
ce(HIGH); ce(HIGH);
delayMicroseconds(15); delayMicroseconds(15);
delay(2);
ce(LOW); ce(LOW);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment