Skip to content

Commit 63dfd9a

Browse files
Properly disable Ethernet IRQ, don't drop packets (#951)
Fix #944
1 parent 9b28fc3 commit 63dfd9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/rp2040/sdkoverride/cyw43_arch_threadsafe_background.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ static void gpio_irq_handler(void) {
145145
static void low_priority_irq_handler(void) {
146146
assert(cyw43_core_num == get_core_num());
147147
if (recursive_mutex_try_enter(&cyw43_mutex, NULL)) {
148-
if (recursive_mutex_enter_count(&cyw43_mutex) != 1) {
148+
if (__inLWIP || (recursive_mutex_enter_count(&cyw43_mutex) != 1)) {
149149
low_priority_irq_missed = true;
150150
CYW43_STAT_INC(PENDSV_DISABLED_COUNT);
151151
} else {

0 commit comments

Comments
 (0)