Merge commit from fork
Some checks failed
cortex_m / Cortex M0 build (push) Has been cancelled
cortex_m / Cortex M3 build (push) Has been cancelled
cortex_m / Cortex M4 build (push) Has been cancelled
cortex_m / Cortex M7 build (push) Has been cancelled
regression_test / tx (push) Has been cancelled
regression_test / smp (push) Has been cancelled
regression_test / deploy (push) Has been cancelled

Fix: Return 0u when no counters available
This commit is contained in:
Frédéric Desbiens
2026-01-09 09:38:16 -05:00
committed by GitHub

View File

@@ -7751,7 +7751,7 @@ UINT index;
if (index >= OSEK_MAX_COUNTERS)
{
/* No more Counters available - user configuration error. */
return ((CounterType) E_OS_SYS_STACK);
return ((CounterType) 0u);
}
/* Found one. */