increase the list of boards that have more memory available for buffer and max MQTT_MAX_PACKET_SIZE (#274)
This commit is contained in:
1 parent
7acd0df84a
commit
6e3a52cbf3
1 file changed
+8
-7
+8
-7
@@ -110,13 +110,14 @@
|
|||||||
#include "config_GPIOInput.h"
|
#include "config_GPIOInput.h"
|
||||||
#endif
|
#endif
|
||||||
// array to store previous received RFs, IRs codes and their timestamps
|
// array to store previous received RFs, IRs codes and their timestamps
|
||||||
#if defined(ESP8266) || defined(ESP32)
|
#if defined(ESP8266) || defined(ESP32) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1280__)
|
||||||
#define MQTT_MAX_PACKET_SIZE 1024
|
#define MQTT_MAX_PACKET_SIZE 1024
|
||||||
#define array_size 12
|
#define array_size 12
|
||||||
unsigned long ReceivedSignal[array_size][2] ={{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}};
|
unsigned long ReceivedSignal[array_size][2] ={{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}};
|
||||||
#else
|
#else // boards with smaller memory
|
||||||
#define array_size 4
|
#define MQTT_MAX_PACKET_SIZE 256
|
||||||
unsigned long ReceivedSignal[array_size][2] ={{0,0},{0,0},{0,0},{0,0}};
|
#define array_size 4
|
||||||
|
unsigned long ReceivedSignal[array_size][2] ={{0,0},{0,0},{0,0},{0,0}};
|
||||||
#endif
|
#endif
|
||||||
/*------------------------------------------------------------------------*/
|
/*------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user