updated packet size

This commit is contained in:
Nick Leeman 2021-04-04 00:07:00 +02:00
parent 057cce2096
commit 6b26acf538
2 changed files with 4 additions and 4 deletions

View File

@ -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":

View File

@ -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 = '>';