From 386d9f95401e5e8269631983d39f92566cef4423 Mon Sep 17 00:00:00 2001 From: santaimpersonator <36016723+santaimpersonator@users.noreply.github.com> Date: Tue, 29 Jul 2025 16:08:39 -0600 Subject: [PATCH] Increase MAX_PAYLOAD_SIZE to 512 bytes Updated MAX_PAYLOAD_SIZE from 276 to 512 to support getModuleInfo() on the ZED-X20P GNSS module, which requires at least 288 bytes. --- src/u-blox_external_typedefs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/u-blox_external_typedefs.h b/src/u-blox_external_typedefs.h index d863b05..38dcac5 100644 --- a/src/u-blox_external_typedefs.h +++ b/src/u-blox_external_typedefs.h @@ -254,7 +254,7 @@ struct sfe_ublox_ubx_logging_list_t #ifndef MAX_PAYLOAD_SIZE // v2.0: keep this for backwards-compatibility, but this is largely superseded by setPacketCfgPayloadSize -#define MAX_PAYLOAD_SIZE 276 // We need >=250 bytes for getProtocolVersion on the NEO-F10N +#define MAX_PAYLOAD_SIZE 512 // We need >=288 bytes for getModuleInfo on the ZED-X20P // #define MAX_PAYLOAD_SIZE 768 //Worst case: UBX_CFG_VALSET packet with 64 keyIDs each with 64 bit values #endif