From b7935ba80bf7bbe4253e9f38fe7a39e352301725 Mon Sep 17 00:00:00 2001 From: Zakaria YAHI Date: Wed, 17 Apr 2019 17:44:20 +0200 Subject: [PATCH] perf: Give the possibility to change the buffer size --- src/SparkFun_Ublox_Arduino_Library.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SparkFun_Ublox_Arduino_Library.h b/src/SparkFun_Ublox_Arduino_Library.h index 73e76ba..dcbfc97 100644 --- a/src/SparkFun_Ublox_Arduino_Library.h +++ b/src/SparkFun_Ublox_Arduino_Library.h @@ -158,8 +158,12 @@ const uint8_t VAL_GROUP_I2C = 0x51; const uint8_t VAL_ID_I2C_ADDRESS = 0x01; +#ifndef MAX_PAYLOAD_SIZE + #define MAX_PAYLOAD_SIZE 64 //Some commands are larger than 64 bytes but this covers most +#endif + //-=-=-=-=- UBX binary specific variables typedef struct {