Changed nex serial rx buffer size from 256 to 64 for saving ram.

Signed-off-by: shennongmin <wupangfee@gmail.com>
This commit is contained in:
shennongmin
2015-08-12 11:29:12 +08:00
parent 32a265296a
commit 0786cf7b73
2 changed files with 4 additions and 2 deletions

View File

@@ -15,7 +15,7 @@
#include "NexTouch.h"
uint8_t NexTouch::__buffer[256] = {0};
uint8_t NexTouch::__buffer[NEX_SERIAL_RX_BUFFER_SIZE] = {0};
/**
* Watting for Nextion's touch event.

View File

@@ -19,6 +19,8 @@
#include <Arduino.h>
#include "NexSerialConfig.h"
#define NEX_SERIAL_RX_BUFFER_SIZE (64)
typedef uint8_t NexPid;
typedef uint8_t NexCid;
@@ -89,7 +91,7 @@ private: /* methods */
void pop(void);
private: /* static data */
static uint8_t __buffer[256];
static uint8_t __buffer[NEX_SERIAL_RX_BUFFER_SIZE];
private: /* data */
NexPid pid; /* Page ID */