mirror of
https://github.com/eclipse-threadx/threadx.git
synced 2026-02-04 12:51:38 +00:00
Merge commit from fork
Fix: Return 0u when no counters available
This commit is contained in:
@@ -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. */
|
||||||
|
|||||||
Reference in New Issue
Block a user