Merge commit from fork

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. */