1
mirror of https://github.com/rvdbreemen/OTGW-firmware synced 2024-11-16 04:33:49 +01:00

Bigger serial input buffer

Bigger input buffer, as before. Back to 256.
This commit is contained in:
Robert van den Breemen 2022-01-16 10:18:39 +01:00
parent 2db98fcf99
commit a2bc41f6c8
2 changed files with 10 additions and 11 deletions

View File

@ -1722,14 +1722,13 @@ void processOT(const char *buf, int len){
void handleOTGW()
{
//handle serial communication and line processing
#define MAX_BUFFER_READ 128
#define MAX_BUFFER_READ 256 //need to be 256 because of long PS=1 responses
#define MAX_BUFFER_WRITE 128
static char sRead[MAX_BUFFER_READ];
static char sWrite[MAX_BUFFER_WRITE];
static size_t bytes_read = 0;
static size_t bytes_write = 0;
static uint8_t outByte;
//Handle incoming data from OTGW through serial port (READ BUFFER)
if (OTGWSerial.hasOverrun()) {

View File

@ -2,15 +2,15 @@
#define _VERSION_MAJOR 0
#define _VERSION_MINOR 9
#define _VERSION_PATCH 3
#define _VERSION_BUILD 1626
#define _VERSION_GITHASH "0529d7f"
#define _VERSION_BUILD 1627
#define _VERSION_GITHASH "2db98fc"
#define _VERSION_PRERELEASE experimental
#define _VERSION_DATE "14-01-2022"
#define _VERSION_TIME "07:58:12"
#define _VERSION_DATE "15-01-2022"
#define _VERSION_TIME "14:43:04"
#define _SEMVER_CORE "0.9.3"
#define _SEMVER_BUILD "0.9.3+1626"
#define _SEMVER_GITHASH "0.9.3+0529d7f"
#define _SEMVER_FULL "0.9.3-experimental+0529d7f"
#define _SEMVER_NOBUILD "0.9.3-experimental (14-01-2022)"
#define _VERSION "0.9.3-experimental+0529d7f (14-01-2022)"
#define _SEMVER_BUILD "0.9.3+1627"
#define _SEMVER_GITHASH "0.9.3+2db98fc"
#define _SEMVER_FULL "0.9.3-experimental+2db98fc"
#define _SEMVER_NOBUILD "0.9.3-experimental (15-01-2022)"
#define _VERSION "0.9.3-experimental+2db98fc (15-01-2022)"
//The version information is created automatically, more information here: https://github.com/rvdbreemen/autoinc-semver