Skip to content

Commit cbc6f6e

Browse files
authored
Merge pull request #11 from ravelab/master
make TX_PAYLOAD_BUFFER_SIZE overridable
2 parents e74cc1a + a8ff80f commit cbc6f6e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Diff for: src/MqttClient.cpp

+6-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@
2929
#endif
3030
#endif
3131

32-
#ifdef __AVR__
33-
#define TX_PAYLOAD_BUFFER_SIZE 128
34-
#else
35-
#define TX_PAYLOAD_BUFFER_SIZE 256
32+
#ifndef TX_PAYLOAD_BUFFER_SIZE
33+
#ifdef __AVR__
34+
#define TX_PAYLOAD_BUFFER_SIZE 128
35+
#else
36+
#define TX_PAYLOAD_BUFFER_SIZE 256
37+
#endif
3638
#endif
3739

3840
#define MQTT_CONNECT 1

0 commit comments

Comments
 (0)