Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default to large max payload size #196

Merged
merged 1 commit into from
Sep 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions RF24Network_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@
* 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
#if defined linux || defined __linux
#define MAX_PAYLOAD_SIZE 1514
2bndy5 marked this conversation as resolved.
Show resolved Hide resolved
#else
#define MAX_PAYLOAD_SIZE 144
#endif
#endif // MAX_PAYLOAD_SIZE

/**
Expand Down Expand Up @@ -99,14 +103,14 @@
#endif
/*************************************/

#endif //RF24_NETWORK_CONFIG_H
#endif // RF24_NETWORK_CONFIG_H

#ifdef __cplusplus

#if (defined(__linux) || defined(linux)) && !defined(__ARDUINO_X86__) && !defined(USE_RF24_LIB_SRC)
#include <RF24/RF24_config.h>

//ATXMega
// ATXMega
#elif defined(XMEGA)
#include "../../rf24lib/rf24lib/RF24_config.h"
#else
Expand Down Expand Up @@ -144,4 +148,4 @@
#define IF_SERIAL_DEBUG_ROUTING(x)
#endif

#endif //RF24_CONFIG_H
#endif // RF24_CONFIG_H