From 50b18a9c7dc39bd27db7405567b7d27f338100ff Mon Sep 17 00:00:00 2001 From: maniacbug Date: Mon, 19 Dec 2011 06:19:25 -0800 Subject: [PATCH] Reduce delays in startWrite down to only required delays --- RF24.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/RF24.cpp b/RF24.cpp index 574910b..c25a869 100644 --- a/RF24.cpp +++ b/RF24.cpp @@ -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); }