Fix datapart length

Reported here: https://lowpowerlab.com/forum/pi-gateway/pigateway-v9-1-0-released/msg27901/#msg27901
This commit is contained in:
Felix Rusu 2020-06-05 10:30:10 -04:00
parent 63fadfe6d6
commit c6445acc30
2 changed files with 3 additions and 6 deletions

View File

@ -93,7 +93,7 @@
//******************************************** BEGIN ADVANCED variables ********************************************************************************
#define RAMSIZE 2048
#define MAX_BUFFER_LENGTH 40 //limit parameter update requests to 40 chars. ex: Parameter:LongRequest
#define MAX_BUFFER_LENGTH 61 //limit parameter update requests to 40 chars. ex: Parameter:LongRequest
#define MAX_ACK_REQUEST_LENGTH 30 //60 is max for ACK (with ATC enabled), but need to allow appending :OK and :INV to confirmations from node
typedef struct req {

View File

@ -44,17 +44,14 @@
#define LED_HIGH digitalWrite(LED_BUILTIN, HIGH)
#define LED_LOW digitalWrite(LED_BUILTIN, LOW)
//******************************************** BEGIN ADVANCED variables ********************************************************************************
#if defined (MOTEINO_M0)
#define RAMSIZE 16384
#elif defined (MOTEINO_MEGA)
#if defined(MOTEINO_M0) || defined(MOTEINO_MEGA)
#define RAMSIZE 16384
#else
#define RAMSIZE 2048
#endif
#define MAX_BUFFER_LENGTH 40 //limit parameter update requests to 20 chars. ex: Parameter:LongRequest
#define MAX_BUFFER_LENGTH 61 //limit parameter update requests to 20 chars. ex: Parameter:LongRequest
#define MAX_ACK_REQUEST_LENGTH 30 //60 is max for ACK (with ATC enabled), but need to allow appending :OK and :INV to confirmations from node
typedef struct req {