Merge pull request #12024 from mtomczykmobica/ONME-4366

ONME-4366 - Fix UBLOX_EVK_ODIN_W2 fails in emac tests due to heap mem…
pull/12039/head
Martin Kojtal 2019-12-04 14:41:19 +01:00 committed by GitHub
commit 083f6511a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -92,7 +92,7 @@ static rtos::Semaphore link_status_semaphore;
#if defined (__ICCARM__)
#pragma location = ".ethusbram"
#endif
ETHMEM_SECTION static EventQueue worker_loop_event_queue(20 * EVENTS_EVENT_SIZE);
ETHMEM_SECTION static EventQueue worker_loop_event_queue(50 * EVENTS_EVENT_SIZE);
static void worker_loop_event_cb(int event);
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)
void emac_if_link_input_cb(void *buf)
{
link_input_event.post(buf);
if (link_input_event.post(buf) == 0) {
if (buf) {
emac_m_mngr_get()->free(buf);
}
}
}
static void link_input_event_cb(void *buf)