Skip to content

Commit d7a9188

Browse files
Remove a small Ethernet debugging counter (earlephilhower#3217)
1 parent 2cabba9 commit d7a9188

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

libraries/lwIP_Ethernet/src/LwipEthernet.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ int hostByName(const char* aHostname, IPAddress& aResult, int timeout_ms) {
206206
return 0;
207207
}
208208

209-
uint32_t __ethernet_timeout_reached_calls = 0;
210209
static uint32_t _pollingPeriod = 20;
211210

212211
// We have a background pump which calls sys_check_timeouts on a periodic basis
@@ -241,7 +240,6 @@ static void ethernetTask(void *param) {
241240
// This will only be called under the protection of the async context mutex, so no re-entrancy checks needed
242241
static void ethernet_timeout_reached(__unused async_context_t *context, __unused async_at_time_worker_t *worker) {
243242
assert(worker == &ethernet_timeout_worker);
244-
__ethernet_timeout_reached_calls++;
245243
ethernet_arch_lwip_gpio_mask(); // Ensure non-polled devices won't interrupt us
246244
for (auto handlePacket : _handlePacketList) {
247245
handlePacket.second();

0 commit comments

Comments
 (0)