Moved the wide_band variable and initializer cleanup.

This commit is contained in:
Greg Copeland 2011-06-21 15:01:10 -05:00
parent aac2c3dba3
commit 634d0efde5
2 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ void RF24::print_observe_tx(uint8_t value) const
RF24::RF24(const uint8_t _cepin, const uint8_t _cspin,
const rf24_datarate_e speed, const uint8_t channel):
wide_band(true), ce_pin(_cepin), csn_pin(_cspin), payload_size(32), ack_payload_available(false)
ce_pin(_cepin), csn_pin(_cspin), wide_band(true), payload_size(32), ack_payload_available(false)
{
setDataRate( speed ) ;
setChannel( channel ) ;

2
RF24.h
View File

@ -22,9 +22,9 @@ typedef enum { RF24_CRC_8 = 0, RF24_CRC_16 } rf24_crclength_e;
class RF24
{
private:
boolean wide_band; /* 2Mbs data rate in use? */
uint8_t ce_pin; /**< "Chip Enable" pin, activates the RX or TX role */
uint8_t csn_pin; /**< SPI Chip select */
boolean wide_band; /* 2Mbs data rate in use? */
uint8_t payload_size; /**< Fixed size of payloads */
boolean ack_payload_available; /**< Whether there is an ack payload waiting */
uint8_t ack_payload_length; /**< Dynamic size of pending ack payload. Note: not used. */