Skip to content

Commit

Permalink
add comments about ATTiny defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Jul 24, 2021
1 parent 49e04db commit 8892524
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion RF24Network.h
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ class RF24Network

/**
* Bring up the network on a specific radio frequency/channel.
* @deprecated Use radio.setChannel() to configure the radio channel.
* @deprecated Use `RF24::setChannel()` to configure the radio channel.
* Use RF24Network::begin(uint16_t _node_address) to set the node address.
*
* **Example 1:** Begin on channel 90 with address 0 (master node)
Expand Down
6 changes: 3 additions & 3 deletions RF24Network_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
* @brief Maximum size of fragmented network frames and fragmentation cache.
* @note This buffer can now be any size > 24. Previously this needed to be a multiple of 24 (changed in v1.0.15).
* @note If used with RF24Ethernet, this value is used to set the buffer sizes.
* @note For noeds driven by an ATTiny based chip, this is set to 72.
* @note For nodes driven by an ATTiny based chip, this is set to 72. However, defining `DISABLE_FRAGMENTION` truncates
* the actual transmitted payload to 24 bytes (which is also the default behavior on ATTiny devices).
*/
#ifndef MAX_PAYLOAD_SIZE
#define MAX_PAYLOAD_SIZE 144
Expand Down Expand Up @@ -78,11 +79,10 @@
/********** USER CONFIG - ATTiny **************/
//#define ENABLE_SLEEP_MODE //AVR only
#define RF24NetworkMulticast
// NOTE: Only 24 bytes of a payload are used when DISABLE_FRAGMENTATION is defined
#define MAX_PAYLOAD_SIZE 72
#define MAIN_BUFFER_SIZE (MAX_PAYLOAD_SIZE + FRAME_HEADER_SIZE)
#define DISABLE_FRAGMENTATION
// Enable MAX PAYLOAD SIZE if enabling fragmentation
//#define MAX_PAYLOAD_SIZE MAIN_BUFFER_SIZE-10
#define ENABLE_DYNAMIC_PAYLOADS
//#define DISABLE_USER_PAYLOADS
#endif
Expand Down

0 comments on commit 8892524

Please sign in to comment.