Skip to content

Commit

Permalink
Comment cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
maniacbug committed Aug 3, 2011
1 parent d967f77 commit b715bf0
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions RF24.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,9 @@ RF24::RF24(uint8_t _cepin, uint8_t _cspin):

void RF24::setChannel(uint8_t channel)
{
// TODO: This method could take advantage of the 'wide_band' calculation
// done in setChannel() to require certain channel spacing.

write_register(RF_CH,min(channel,127));
}

Expand Down Expand Up @@ -723,7 +726,7 @@ bool RF24::isPVariant(void)
return p_variant ;
}

/******************************************************************/
/****************************************************************************/

void RF24::setAutoAck(bool enable)
{
Expand Down Expand Up @@ -752,7 +755,7 @@ void RF24::setAutoAck( uint8_t pipe, bool enable )
}
}

/******************************************************************/
/****************************************************************************/

bool RF24::testCarrier(void)
{
Expand All @@ -766,7 +769,7 @@ bool RF24::testRPD(void)
return ( read_register(RPD) & 1 ) ;
}

/******************************************************************/
/****************************************************************************/

void RF24::setPALevel(rf24_pa_dbm_e level)
{
Expand Down Expand Up @@ -799,7 +802,7 @@ void RF24::setPALevel(rf24_pa_dbm_e level)
write_register( RF_SETUP, setup ) ;
}

/******************************************************************/
/****************************************************************************/

rf24_pa_dbm_e RF24::getPALevel(void)
{
Expand Down Expand Up @@ -828,7 +831,7 @@ rf24_pa_dbm_e RF24::getPALevel(void)
return result ;
}

/******************************************************************/
/****************************************************************************/

bool RF24::setDataRate(rf24_datarate_e speed)
{
Expand Down Expand Up @@ -875,7 +878,7 @@ bool RF24::setDataRate(rf24_datarate_e speed)
return result;
}

/******************************************************************/
/****************************************************************************/

rf24_datarate_e RF24::getDataRate( void )
{
Expand Down Expand Up @@ -923,7 +926,7 @@ void RF24::setCRCLength(rf24_crclength_e length)
write_register( CONFIG, config ) ;
}

/******************************************************************/
/****************************************************************************/

void RF24::disableCRC( void )
{
Expand Down

0 comments on commit b715bf0

Please sign in to comment.