sed s/boolean/bool/g

This commit is contained in:
maniacbug 2011-07-31 10:00:09 -07:00
parent 14c34ca2e4
commit 956b63a4dc
2 changed files with 8 additions and 7 deletions

View File

@ -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

4
RF24.h
View File

@ -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.