aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports/cosmic/STM8/chcore.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/ports/cosmic/STM8/chcore.h')
-rw-r--r--os/ports/cosmic/STM8/chcore.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/ports/cosmic/STM8/chcore.h b/os/ports/cosmic/STM8/chcore.h
index 93a4c24f0..75bed68cc 100644
--- a/os/ports/cosmic/STM8/chcore.h
+++ b/os/ports/cosmic/STM8/chcore.h
@@ -203,8 +203,8 @@ struct stm8_startctx {
* enabled to invoke system APIs.
*/
#define PORT_IRQ_EPILOGUE() { \
- if (chSchIsRescRequiredExI()) \
- chSchDoRescheduleI(); \
+ if (chSchIsPreemptionRequired()) \
+ chSchDoReschedule(); \
}
/**