From 956b63a4dce35afb73bdd4847f20512fbbb38ea5 Mon Sep 17 00:00:00 2001 From: maniacbug Date: Sun, 31 Jul 2011 10:00:09 -0700 Subject: [PATCH] sed s/boolean/bool/g --- RF24.cpp | 11 ++++++----- RF24.h | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/RF24.cpp b/RF24.cpp index f491f18..5efc4ea 100644 --- a/RF24.cpp +++ b/RF24.cpp @@ -419,7 +419,7 @@ void RF24::powerUp(void) /******************************************************************/ -boolean RF24::write( const void* buf, uint8_t len ) +bool RF24::write( const void* buf, uint8_t len ) { bool result = false; @@ -716,7 +716,7 @@ bool RF24::isAckPayloadAvailable(void) /****************************************************************************/ -boolean RF24::isPVariant(void) +bool RF24::isPVariant(void) { return p_variant ; } @@ -752,14 +752,14 @@ void RF24::setAutoAck( uint8_t pipe, bool enable ) /******************************************************************/ -boolean RF24::testCarrier(void) +bool RF24::testCarrier(void) { return ( read_register(CD) & 1 ); } /****************************************************************************/ -boolean RF24::testRPD(void) +bool RF24::testRPD(void) { return ( read_register(RPD) & 1 ) ; } @@ -828,8 +828,9 @@ rf24_pa_dbm_e RF24::getPALevel(void) /******************************************************************/ -boolean RF24::setDataRate(rf24_datarate_e speed) +bool RF24::setDataRate(rf24_datarate_e speed) { + bool result = false; uint8_t setup = read_register(RF_SETUP) ; // HIGH and LOW '00' is 1Mbs - our default diff --git a/RF24.h b/RF24.h index d93bb8b..7f69bb4 100644 --- a/RF24.h +++ b/RF24.h @@ -488,7 +488,7 @@ public: * @return true if the hardware is nRF24L01+ (or compatible) and false * if its not. */ - boolean isPVariant(void) ; + bool isPVariant(void) ; /** * Call this when you get an interrupt to find out why @@ -543,7 +543,7 @@ public: * * @return true if signal => -64dBm, false if not */ - boolean testRPD(void) ; + bool testRPD(void) ; /** * Set Power Amplifier (PA) level to one of four levels.