From 61686221762e906f432113975fb1a1cf072aeed1 Mon Sep 17 00:00:00 2001 From: nx518 <50616530+nx518@users.noreply.github.com> Date: Wed, 23 Nov 2022 19:29:44 +0100 Subject: [PATCH] clear EIE INTIE instead of non-existent EIR INTIE --- .../enc28j60/components/eth_enc28j60/esp_eth_mac_enc28j60.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ethernet/enc28j60/components/eth_enc28j60/esp_eth_mac_enc28j60.c b/examples/ethernet/enc28j60/components/eth_enc28j60/esp_eth_mac_enc28j60.c index 15834bae09..7dabc6b053 100644 --- a/examples/ethernet/enc28j60/components/eth_enc28j60/esp_eth_mac_enc28j60.c +++ b/examples/ethernet/enc28j60/components/eth_enc28j60/esp_eth_mac_enc28j60.c @@ -728,7 +728,7 @@ loop_start: continue; // -> just continue to check again } // the host controller should clear the global enable bit for the interrupt pin before servicing the interrupt - MAC_CHECK_NO_RET(enc28j60_do_bitwise_clr(emac, ENC28J60_EIR, EIE_INTIE) == ESP_OK, + MAC_CHECK_NO_RET(enc28j60_do_bitwise_clr(emac, ENC28J60_EIE, EIE_INTIE) == ESP_OK, "clear EIE_INTIE failed", loop_start); // read interrupt status MAC_CHECK_NO_RET(enc28j60_do_register_read(emac, true, ENC28J60_EIR, &status) == ESP_OK,