From 5cd5a20b61fa65bfe57b30a0334442ceda044b65 Mon Sep 17 00:00:00 2001 From: Paul <5690545+PaulZC@users.noreply.github.com> Date: Fri, 22 May 2020 10:26:34 +0100 Subject: [PATCH] Clear extensionNo and fix compiler warnings --- examples/Example21_ModuleInfo/Example21_ModuleInfo.ino | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/Example21_ModuleInfo/Example21_ModuleInfo.ino b/examples/Example21_ModuleInfo/Example21_ModuleInfo.ino index 508a912..0526386 100644 --- a/examples/Example21_ModuleInfo/Example21_ModuleInfo.ino +++ b/examples/Example21_ModuleInfo/Example21_ModuleInfo.ino @@ -110,10 +110,11 @@ void loop() boolean SFE_UBLOX_GPS_ADD::getModuleInfo(uint16_t maxWait) { - myGPS.minfo.hwVersion[0] = NULL; - myGPS.minfo.swVersion[0] = NULL; + myGPS.minfo.hwVersion[0] = 0; + myGPS.minfo.swVersion[0] = 0; for (int i = 0; i < 10; i++) - myGPS.minfo.extension[i][0] = NULL; + myGPS.minfo.extension[i][0] = 0; + myGPS.minfo.extensionNo = 0; // Let's create our custom packet uint8_t customPayload[MAX_PAYLOAD_SIZE]; // This array holds the payload data bytes @@ -152,7 +153,7 @@ boolean SFE_UBLOX_GPS_ADD::getModuleInfo(uint16_t maxWait) if (sendCommand(&customCfg, maxWait) != SFE_UBLOX_STATUS_DATA_RECEIVED) return (false); //If command send fails then bail - // Now let's extract the module info from customPayload + // Now let's extract the module info from customPayload uint16_t position = 0; for (int i = 0; i < 30; i++)