@@ -501,10 +501,18 @@ NETCONSUMER_MASK_t networkConsumerBits(NetIndex_t index)
501
501
return networkConsumersAny | netIfConsumers[index];
502
502
}
503
503
504
+ // ----------------------------------------
505
+ // Count the number of network consumers
506
+ // ----------------------------------------
507
+ int networkConsumerCount (NetIndex_t index)
508
+ {
509
+ return networkConsumerCountBits (networkConsumerBits (index));
510
+ }
511
+
504
512
// ----------------------------------------
505
513
// Count the network consumer bits
506
514
// ----------------------------------------
507
- int networkConsumerCount (NETCONSUMER_MASK_t bits)
515
+ int networkConsumerCountBits (NETCONSUMER_MASK_t bits)
508
516
{
509
517
int bitCount;
510
518
NETCONSUMER_MASK_t bitMask;
@@ -543,7 +551,7 @@ void networkConsumerDisplay()
543
551
bits |= netIfConsumers[index];
544
552
users = netIfUsers[index];
545
553
}
546
- systemPrintf (" Network Consumers: %d" , networkConsumerCount (bits));
554
+ systemPrintf (" Network Consumers: %d" , networkConsumerCountBits (bits));
547
555
networkConsumerPrint (bits, users, " , " );
548
556
systemPrintln ();
549
557
@@ -2025,7 +2033,7 @@ NETCONSUMER_MASK_t networkSoftApConsumerBits()
2025
2033
// ----------------------------------------
2026
2034
void networkSoftApConsumerDisplay ()
2027
2035
{
2028
- systemPrintf (" WiFi Soft AP Consumers: %d" , networkConsumerCount (networkSoftApConsumer));
2036
+ systemPrintf (" WiFi Soft AP Consumers: %d" , networkConsumerCountBits (networkSoftApConsumer));
2029
2037
networkConsumerPrint (networkSoftApConsumer, 0 , " , " );
2030
2038
systemPrintln ();
2031
2039
}
@@ -2465,7 +2473,7 @@ void networkUserDisplay(NetIndex_t index)
2465
2473
2466
2474
// Determine if there are any users
2467
2475
bits = netIfUsers[index];
2468
- systemPrintf (" %s Users: %d" , networkInterfaceTable[index].name , networkConsumerCount (bits));
2476
+ systemPrintf (" %s Users: %d" , networkInterfaceTable[index].name , networkConsumerCountBits (bits));
2469
2477
networkConsumerPrint (bits, 0 , " , " );
2470
2478
systemPrintln ();
2471
2479
}
0 commit comments