@@ -1461,7 +1461,7 @@ uint8_t networkConsumers()
1461
1461
// PointPerfect Corrections enabled with a non-zero length key
1462
1462
if (settings.enablePointPerfectCorrections == true && strlen (settings.pointPerfectCurrentKey ) > 0 )
1463
1463
{
1464
- if (online.rtc )
1464
+ if (online.rtc == true )
1465
1465
{
1466
1466
// Check if keys need updating
1467
1467
int daysRemaining =
@@ -1470,8 +1470,12 @@ uint8_t networkConsumers()
1470
1470
{
1471
1471
consumerCount++;
1472
1472
consumerType |= (1 << 6 );
1473
- if (settings.debugNetworkLayer )
1474
- systemPrintf (" Network consumer daysRemaining: %d\r\n " , daysRemaining);
1473
+ }
1474
+ else
1475
+ {
1476
+ // PointPerfect is enabled, allow MQTT to begin
1477
+ consumerCount++;
1478
+ consumerType |= (1 << 7 );
1475
1479
}
1476
1480
}
1477
1481
}
@@ -1485,22 +1489,29 @@ uint8_t networkConsumers()
1485
1489
if (millis () - lastPrint > 2000 )
1486
1490
{
1487
1491
lastPrint = millis ();
1488
- systemPrintf (" Network consumer count: %d - Consumers: " , consumerCount);
1489
-
1490
- if (consumerType & (1 << 0 ))
1491
- systemPrint (" Rover NTRIP Client, " );
1492
- if (consumerType & (1 << 1 ))
1493
- systemPrint (" Base NTRIP Server, " );
1494
- if (consumerType & (1 << 2 ))
1495
- systemPrint (" TCP Client, " );
1496
- if (consumerType & (1 << 3 ))
1497
- systemPrint (" TCP Server, " );
1498
- if (consumerType & (1 << 4 ))
1499
- systemPrint (" UDP Server, " );
1500
- if (consumerType & (1 << 5 ))
1501
- systemPrint (" PPL Key request, " );
1502
- if (consumerType & (1 << 6 ))
1503
- systemPrint (" PPL Key update, " );
1492
+ systemPrintf (" Network consumer count: %d " , consumerCount);
1493
+ if (consumerCount > 0 )
1494
+ {
1495
+ systemPrintf (" - Consumers: " , consumerCount);
1496
+
1497
+ if (consumerType & (1 << 0 ))
1498
+ systemPrint (" Rover NTRIP Client, " );
1499
+ if (consumerType & (1 << 1 ))
1500
+ systemPrint (" Base NTRIP Server, " );
1501
+ if (consumerType & (1 << 2 ))
1502
+ systemPrint (" TCP Client, " );
1503
+ if (consumerType & (1 << 3 ))
1504
+ systemPrint (" TCP Server, " );
1505
+ if (consumerType & (1 << 4 ))
1506
+ systemPrint (" UDP Server, " );
1507
+ if (consumerType & (1 << 5 ))
1508
+ systemPrint (" PPL Key Request, " );
1509
+ if (consumerType & (1 << 6 ))
1510
+ systemPrint (" PPL Key Update, " );
1511
+ if (consumerType & (1 << 7 ))
1512
+ systemPrint (" PPL MQTT Client, " );
1513
+ }
1514
+
1504
1515
systemPrintln ();
1505
1516
}
1506
1517
}
0 commit comments