Skip net_poll and timers unless their interrupt has fired
This commit is contained in:
@@ -293,6 +293,8 @@ void net_set_handler(net_handler handler) {
|
||||
}
|
||||
|
||||
void net_poll() {
|
||||
if (!w6300::irq_pending) return;
|
||||
w6300::irq_pending = false;
|
||||
w6300::clear_interrupt(w6300::ik_int_all);
|
||||
if (w6300::get_socket_recv_buf(raw_socket) == 0) return;
|
||||
static uint8_t rx_buf[1518];
|
||||
|
||||
Reference in New Issue
Block a user