beremiz
Clone
Summary
Browse
Changes
Graph
Fixed stopping crash in some cases
2012-02-23, Edouard Tisserant
f378fe028f6c
Parents
fb55fbee202c
Children
513c66e64b8e
Fixed stopping crash in some cases
1 files changed, 1 insertions(+), 1 deletions(-)
+1
-1
targets/Xenomai/plc_Xenomai_main.c
--- a/targets/Xenomai/plc_Xenomai_main.c Tue Feb 21 22:36:35 2012 +0100
+++ b/targets/Xenomai/plc_Xenomai_main.c Thu Feb 23 17:45:11 2012 +0100
@@ -75,7 +75,7 @@
{
PLC_SetTimer(Ttick, Ttick);
- while (1) {
+ while (!PLC_shutdown) {
PLC_GetTime(&__CURRENT_TIME);
__run();
if (PLC_shutdown) break;