From b715bf0fc89899f539aee8c4a982009fe27cfbe8 Mon Sep 17 00:00:00 2001 From: maniacbug Date: Tue, 2 Aug 2011 21:15:14 -0700 Subject: [PATCH] Comment cleanups --- RF24.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/RF24.cpp b/RF24.cpp index 2686a1d..729a309 100644 --- a/RF24.cpp +++ b/RF24.cpp @@ -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)); } @@ -723,7 +726,7 @@ bool RF24::isPVariant(void) return p_variant ; } -/******************************************************************/ +/****************************************************************************/ void RF24::setAutoAck(bool enable) { @@ -752,7 +755,7 @@ void RF24::setAutoAck( uint8_t pipe, bool enable ) } } -/******************************************************************/ +/****************************************************************************/ bool RF24::testCarrier(void) { @@ -766,7 +769,7 @@ bool RF24::testRPD(void) return ( read_register(RPD) & 1 ) ; } -/******************************************************************/ +/****************************************************************************/ void RF24::setPALevel(rf24_pa_dbm_e level) { @@ -799,7 +802,7 @@ void RF24::setPALevel(rf24_pa_dbm_e level) write_register( RF_SETUP, setup ) ; } -/******************************************************************/ +/****************************************************************************/ rf24_pa_dbm_e RF24::getPALevel(void) { @@ -828,7 +831,7 @@ rf24_pa_dbm_e RF24::getPALevel(void) return result ; } -/******************************************************************/ +/****************************************************************************/ bool RF24::setDataRate(rf24_datarate_e speed) { @@ -875,7 +878,7 @@ bool RF24::setDataRate(rf24_datarate_e speed) return result; } -/******************************************************************/ +/****************************************************************************/ rf24_datarate_e RF24::getDataRate( void ) { @@ -923,7 +926,7 @@ void RF24::setCRCLength(rf24_crclength_e length) write_register( CONFIG, config ) ; } -/******************************************************************/ +/****************************************************************************/ void RF24::disableCRC( void ) {