Skip to content

Commit 7a98242

Browse files
committed
Change maximum_payload_size to uint16_t. Avoids compiler warning on Nano 33
1 parent 36f696f commit 7a98242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SparkFun_u-blox_GNSS_Arduino_Library.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,7 @@ void SFE_UBLOX_GNSS::processUBX(uint8_t incoming, ubxPacket *incomingUBX, uint8_
14581458
//If incomingUBX is a user-defined custom packet, then the payload size could be different to packetCfgPayloadSize.
14591459
//TO DO: update this to prevent an overrun when receiving an automatic message
14601460
// and the incomingUBX payload size is smaller than packetCfgPayloadSize.
1461-
size_t maximum_payload_size;
1461+
uint16_t maximum_payload_size;
14621462
if (activePacketBuffer == SFE_UBLOX_PACKET_PACKETCFG)
14631463
maximum_payload_size = packetCfgPayloadSize;
14641464
else if (activePacketBuffer == SFE_UBLOX_PACKET_PACKETAUTO)

0 commit comments

Comments
 (0)