Merge pull request #517 from DrDoof/fix/rx-drain

rx: keep draining while the NIC buffer holds data
This commit is contained in:
René van Dorst authored and GitHub committed 2026-09-24 19:27:08 +00:00
commit 770926abd1
1 file changed
+5 -1
+5 -1
View File
@@ -1300,7 +1300,11 @@ void idle(void)
rx_irq = 0; rx_irq = 0;
handle_rx(); handle_rx();
REG_SET(RTL837X_NIC_INT_STS, NIC_INT_RXIS); REG_SET(RTL837X_NIC_INT_STS, NIC_INT_RXIS);
EX1 = 1; reg_read(RTL837X_REG_NIC_RX_BUFF_DATA);
if (SFR_DATA_U16)
rx_irq = 1;
else
EX1 = 1;
} }
health_phase(HEALTH_PH_RX); health_phase(HEALTH_PH_RX);
if (cmd_available) { if (cmd_available) {