Skip to content

Commit 4b6e810

Browse files
authored
Merge commit from fork
Fix: Return 0u when no counters available
2 parents a9b31c3 + c09b444 commit 4b6e810

File tree

1 file changed

+1
-1
lines changed
  • utility/rtos_compatibility_layers/OSEK

1 file changed

+1
-1
lines changed

utility/rtos_compatibility_layers/OSEK/tx_osek.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7751,7 +7751,7 @@ UINT index;
77517751
if (index >= OSEK_MAX_COUNTERS)
77527752
{
77537753
/* No more Counters available - user configuration error. */
7754-
return ((CounterType) E_OS_SYS_STACK);
7754+
return ((CounterType) 0u);
77557755
}
77567756

77577757
/* Found one. */

0 commit comments

Comments
 (0)