File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ static rtos::Semaphore link_status_semaphore;
9292#if defined (__ICCARM__)
9393#pragma location = ".ethusbram"
9494#endif
95- ETHMEM_SECTION static EventQueue worker_loop_event_queue (20 * EVENTS_EVENT_SIZE);
95+ ETHMEM_SECTION static EventQueue worker_loop_event_queue (50 * EVENTS_EVENT_SIZE);
9696
9797static void worker_loop_event_cb (int event);
9898static Event<void (int )> worker_loop_event (&worker_loop_event_queue, worker_loop_event_cb);
@@ -434,7 +434,11 @@ void emac_if_link_state_change_cb(bool up)
434434
435435void emac_if_link_input_cb (void *buf)
436436{
437- link_input_event.post (buf);
437+ if (link_input_event.post (buf) == 0 ) {
438+ if (buf) {
439+ emac_m_mngr_get ()->free (buf);
440+ }
441+ }
438442}
439443
440444static void link_input_event_cb (void *buf)
You can’t perform that action at this time.
0 commit comments