Skip to content

Commit

Permalink
Make most #defines in RF24Network_config.h conditional so they can be…
Browse files Browse the repository at this point in the history
… set from project code or compiler command line.
  • Loading branch information
kripton authored and 2bndy5 committed Apr 12, 2021
1 parent 30be90b commit ecb31c2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions RF24Network_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
#ifndef __RF24NETWORK_CONFIG_H__
#define __RF24NETWORK_CONFIG_H__

#define NETWORK_DEFAULT_ADDRESS 04444
#ifndef NETWORK_DEFAULT_ADDRESS
#define NETWORK_DEFAULT_ADDRESS 04444
#endif // NETWORK_DEFAULT_ADDRESS

#if !defined(__AVR_ATtiny85__) && !defined(__AVR_ATtiny84__)

Expand All @@ -33,7 +35,9 @@
* @note: This buffer can now be any size > 24. Previously need to be a multiple of 24.
* @note: If used with RF24Ethernet, this value is used to set the buffer sizes.
*/
#define MAX_PAYLOAD_SIZE 144
#ifndef MAX_PAYLOAD_SIZE
#define MAX_PAYLOAD_SIZE 144
#endif // MAX_PAYLOAD_SIZE

/** The size of the main buffer. This is the user-cache, where incoming data is stored.
* Data is stored using Frames: Header (8-bytes) + Frame_Size (2-bytes) + Data (?-bytes)
Expand Down

0 comments on commit ecb31c2

Please sign in to comment.