Fix: Return 0u when no counters available

This commit is contained in:
nopnopnop-lavine
2025-11-18 14:43:17 +08:00
parent c4ad279b85
commit c09b444792

View File

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