From 6b26acf53836f601a33761b75041500311ba7447 Mon Sep 17 00:00:00 2001 From: Nick Leeman Date: Sun, 4 Apr 2021 00:07:00 +0200 Subject: [PATCH] updated packet size --- library.json | 2 +- src/SerialConnection.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/library.json b/library.json index c482425..d9f4a3e 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "SimpleSerialProtocol", - "version": "1.3.0", + "version": "1.4.0", "description": "Easy-to-use serial protocol system for arduino type devices.", "keywords": "Serial, Connectivity, USB, Simple", "repository": diff --git a/src/SerialConnection.h b/src/SerialConnection.h index cab9cc4..622f9fc 100644 --- a/src/SerialConnection.h +++ b/src/SerialConnection.h @@ -21,9 +21,9 @@ class SerialConnection { private: - int serialBufferSize = 1024; - char serialBuffer[1024]; - char serialData[1024] = {0}; + int serialBufferSize = 512; + char serialBuffer[512]; + char serialData[512] = {0}; const char packetStartMarker = '<'; const char packetEndMarker = '>';