From 634d0efde5930e79d1bc2a51972f83e942394d62 Mon Sep 17 00:00:00 2001 From: Greg Copeland Date: Tue, 21 Jun 2011 15:01:10 -0500 Subject: [PATCH] Moved the wide_band variable and initializer cleanup. --- RF24.cpp | 2 +- RF24.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RF24.cpp b/RF24.cpp index c23b18b..fed43c3 100644 --- a/RF24.cpp +++ b/RF24.cpp @@ -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 ) ; diff --git a/RF24.h b/RF24.h index 956fa27..84feb6d 100644 --- a/RF24.h +++ b/RF24.h @@ -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. */