mirror of
https://github.com/itead/ITEADLIB_Arduino_Nextion.git
synced 2026-03-06 18:16:49 +01:00
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:
@@ -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.
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user