diff options
| author | nopnopnop-lavine <[email protected]> | 2025-11-18 14:43:17 +0800 |
|---|---|---|
| committer | nopnopnop-lavine <[email protected]> | 2025-11-18 14:43:17 +0800 |
| commit | c09b444792fd106c3041a9dcf007f3f780b8633b (patch) | |
| tree | a3cc7b9316608744bae5b5eadb0ad307909ca1fe | |
| parent | c4ad279b85fcf836c0b42d3e140fc32f0554e7b5 (diff) | |
Fix: Return 0u when no counters available
| -rw-r--r-- | utility/rtos_compatibility_layers/OSEK/tx_osek.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utility/rtos_compatibility_layers/OSEK/tx_osek.c b/utility/rtos_compatibility_layers/OSEK/tx_osek.c index d11b8149..bf5f482c 100644 --- a/utility/rtos_compatibility_layers/OSEK/tx_osek.c +++ b/utility/rtos_compatibility_layers/OSEK/tx_osek.c @@ -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. */ |
