@@ -1233,7 +1233,7 @@ sfe_ublox_status_e SFE_UBLOX_GPS::waitForACKResponse(ubxPacket *outgoingUBX, uin
1233
1233
if ((outgoingUBX->classAndIDmatch == SFE_UBLOX_PACKET_VALIDITY_VALID)
1234
1234
&& (packetAck.classAndIDmatch == SFE_UBLOX_PACKET_VALIDITY_VALID)
1235
1235
&& (outgoingUBX->valid == SFE_UBLOX_PACKET_VALIDITY_VALID)
1236
- && (outgoingUBX->class == requestedClass)
1236
+ && (outgoingUBX->cls == requestedClass)
1237
1237
&& (outgoingUBX->id == requestedID))
1238
1238
{
1239
1239
if (_printDebug == true )
@@ -1248,7 +1248,7 @@ sfe_ublox_status_e SFE_UBLOX_GPS::waitForACKResponse(ubxPacket *outgoingUBX, uin
1248
1248
// We can be confident that the data packet (if we are going to get one) will always arrive
1249
1249
// before the matching ACK. So if we accidentally sent a config packet which only produces an ACK
1250
1250
// then outgoingUBX->classAndIDmatch will be NOT_DEFINED and the packetAck.classAndIDmatch will VALID.
1251
- // We should not check outgoingUBX->valid, outgoingUBX->class or outgoingUBX->id
1251
+ // We should not check outgoingUBX->valid, outgoingUBX->cls or outgoingUBX->id
1252
1252
// as these may have been changed by a PVT packet.
1253
1253
else if ((outgoingUBX->classAndIDmatch == SFE_UBLOX_PACKET_VALIDITY_NOT_DEFINED)
1254
1254
&& (packetAck.classAndIDmatch == SFE_UBLOX_PACKET_VALIDITY_VALID))
@@ -1263,14 +1263,14 @@ sfe_ublox_status_e SFE_UBLOX_GPS::waitForACKResponse(ubxPacket *outgoingUBX, uin
1263
1263
}
1264
1264
1265
1265
// If both the outgoingUBX->classAndIDmatch and packetAck.classAndIDmatch are VALID
1266
- // but the outgoingUBX->class or ID no longer match then we can be confident that we had
1266
+ // but the outgoingUBX->cls or ID no longer match then we can be confident that we had
1267
1267
// valid data but it has been or is currently being overwritten by another packet (e.g. PVT).
1268
1268
// If (e.g.) a PVT packet is _being_ received: outgoingUBX->valid will be NOT_DEFINED
1269
1269
// If (e.g.) a PVT packet _has been_ received: outgoingUBX->valid will be VALID (or just possibly NOT_VALID)
1270
1270
// So we cannot use outgoingUBX->valid as part of this check.
1271
1271
else if ((outgoingUBX->classAndIDmatch == SFE_UBLOX_PACKET_VALIDITY_VALID)
1272
1272
&& (packetAck.classAndIDmatch == SFE_UBLOX_PACKET_VALIDITY_VALID)
1273
- && !((outgoingUBX->class != requestedClass)
1273
+ && !((outgoingUBX->cls != requestedClass)
1274
1274
|| (outgoingUBX->id != requestedID)))
1275
1275
{
1276
1276
if (_printDebug == true )
@@ -1300,7 +1300,7 @@ sfe_ublox_status_e SFE_UBLOX_GPS::waitForACKResponse(ubxPacket *outgoingUBX, uin
1300
1300
// If our packet was not-acknowledged (NACK) we do not receive a data packet - we only get the NACK.
1301
1301
// So you would expect outgoingUBX->valid and outgoingUBX->classAndIDmatch to still be NOT_DEFINED
1302
1302
// But if a full PVT packet arrives afterwards outgoingUBX->valid could be VALID (or just possibly NOT_VALID)
1303
- // but outgoingUBX->class and outgoingUBX->id would not match...
1303
+ // but outgoingUBX->cls and outgoingUBX->id would not match...
1304
1304
// So I think this is telling us we need a special state for packetAck.classAndIDmatch to tell us
1305
1305
// the packet was definitely NACK'd otherwise we are possibly just guessing...
1306
1306
else if (packetAck.classAndIDmatch == SFE_UBLOX_PACKET_NOTACKNOWLEDGED)
@@ -1320,7 +1320,7 @@ sfe_ublox_status_e SFE_UBLOX_GPS::waitForACKResponse(ubxPacket *outgoingUBX, uin
1320
1320
else if ((outgoingUBX->classAndIDmatch == SFE_UBLOX_PACKET_VALIDITY_VALID)
1321
1321
&& (packetAck.classAndIDmatch == SFE_UBLOX_PACKET_VALIDITY_NOT_VALID)
1322
1322
&& (outgoingUBX->valid == SFE_UBLOX_PACKET_VALIDITY_VALID)
1323
- && (outgoingUBX->class == requestedClass)
1323
+ && (outgoingUBX->cls == requestedClass)
1324
1324
&& (outgoingUBX->id == requestedID))
1325
1325
{
1326
1326
if (_printDebug == true )
@@ -1370,7 +1370,7 @@ sfe_ublox_status_e SFE_UBLOX_GPS::waitForACKResponse(ubxPacket *outgoingUBX, uin
1370
1370
if ((outgoingUBX->classAndIDmatch == SFE_UBLOX_PACKET_VALIDITY_VALID)
1371
1371
&& (packetAck.classAndIDmatch == SFE_UBLOX_PACKET_VALIDITY_NOT_DEFINED)
1372
1372
&& (outgoingUBX->valid == SFE_UBLOX_PACKET_VALIDITY_VALID)
1373
- && (outgoingUBX->class == requestedClass)
1373
+ && (outgoingUBX->cls == requestedClass)
1374
1374
&& (outgoingUBX->id == requestedID))
1375
1375
{
1376
1376
if (_printDebug == true )
@@ -1416,7 +1416,7 @@ sfe_ublox_status_e SFE_UBLOX_GPS::waitForNoACKResponse(ubxPacket *outgoingUBX, u
1416
1416
// then we can be confident that the data in outgoingUBX is valid
1417
1417
if ((outgoingUBX->classAndIDmatch == SFE_UBLOX_PACKET_VALIDITY_VALID)
1418
1418
&& (outgoingUBX->valid == SFE_UBLOX_PACKET_VALIDITY_VALID)
1419
- && (outgoingUBX->class == requestedClass)
1419
+ && (outgoingUBX->cls == requestedClass)
1420
1420
&& (outgoingUBX->id == requestedID))
1421
1421
{
1422
1422
if (_printDebug == true )
@@ -1429,13 +1429,13 @@ sfe_ublox_status_e SFE_UBLOX_GPS::waitForNoACKResponse(ubxPacket *outgoingUBX, u
1429
1429
}
1430
1430
1431
1431
// If the outgoingUBX->classAndIDmatch is VALID
1432
- // but the outgoingUBX->class or ID no longer match then we can be confident that we had
1432
+ // but the outgoingUBX->cls or ID no longer match then we can be confident that we had
1433
1433
// valid data but it has been or is currently being overwritten by another packet (e.g. PVT).
1434
1434
// If (e.g.) a PVT packet is _being_ received: outgoingUBX->valid will be NOT_DEFINED
1435
1435
// If (e.g.) a PVT packet _has been_ received: outgoingUBX->valid will be VALID (or just possibly NOT_VALID)
1436
1436
// So we cannot use outgoingUBX->valid as part of this check.
1437
1437
else if ((outgoingUBX->classAndIDmatch == SFE_UBLOX_PACKET_VALIDITY_VALID)
1438
- && !((outgoingUBX->class != requestedClass)
1438
+ && !((outgoingUBX->cls != requestedClass)
1439
1439
|| (outgoingUBX->id != requestedID)))
1440
1440
{
1441
1441
if (_printDebug == true )
@@ -1457,7 +1457,7 @@ sfe_ublox_status_e SFE_UBLOX_GPS::waitForNoACKResponse(ubxPacket *outgoingUBX, u
1457
1457
_debugSerial->print (F (" waitForNoACKResponse: valid but UNWANTED data after " ));
1458
1458
_debugSerial->print (millis () - startTime);
1459
1459
_debugSerial->print (F (" msec. Class: " ));
1460
- _debugSerial->print (outgoingUBX->class );
1460
+ _debugSerial->print (outgoingUBX->cls );
1461
1461
_debugSerial->print (F (" ID: " ));
1462
1462
_debugSerial->print (outgoingUBX->id );
1463
1463
}
0 commit comments