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;
92
92
#if defined (__ICCARM__)
93
93
#pragma location = ".ethusbram"
94
94
#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);
96
96
97
97
static void worker_loop_event_cb (int event);
98
98
static 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)
434
434
435
435
void emac_if_link_input_cb (void *buf)
436
436
{
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
+ }
438
442
}
439
443
440
444
static void link_input_event_cb (void *buf)
You can’t perform that action at this time.
0 commit comments