From 7a98242f1057defa7931a57137a2ed2aaa7139c6 Mon Sep 17 00:00:00 2001 From: PaulZC Date: Sat, 8 May 2021 06:15:14 +0100 Subject: [PATCH] Change maximum_payload_size to uint16_t. Avoids compiler warning on Nano 33 --- src/SparkFun_u-blox_GNSS_Arduino_Library.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SparkFun_u-blox_GNSS_Arduino_Library.cpp b/src/SparkFun_u-blox_GNSS_Arduino_Library.cpp index f55d351..74e8b17 100644 --- a/src/SparkFun_u-blox_GNSS_Arduino_Library.cpp +++ b/src/SparkFun_u-blox_GNSS_Arduino_Library.cpp @@ -1458,7 +1458,7 @@ void SFE_UBLOX_GNSS::processUBX(uint8_t incoming, ubxPacket *incomingUBX, uint8_ //If incomingUBX is a user-defined custom packet, then the payload size could be different to packetCfgPayloadSize. //TO DO: update this to prevent an overrun when receiving an automatic message // and the incomingUBX payload size is smaller than packetCfgPayloadSize. - size_t maximum_payload_size; + uint16_t maximum_payload_size; if (activePacketBuffer == SFE_UBLOX_PACKET_PACKETCFG) maximum_payload_size = packetCfgPayloadSize; else if (activePacketBuffer == SFE_UBLOX_PACKET_PACKETAUTO)