--- a/examples/CANOpenShell/CANOpenShell.c Mon Oct 01 17:01:36 2012 +0200
+++ b/examples/CANOpenShell/CANOpenShell.c Mon Oct 01 17:04:34 2012 +0200
@@ -58,13 +58,17 @@
char BoardBusName[31];
char BoardBaudRate[5];
s_BOARD Board = {BoardBusName, BoardBaudRate};
-CO_Data* CANOpenShellOD_Data;
+CO_Data* CANOpenShellOD_Data;
char LibraryPath[512];
/* Sleep for n seconds */
void SleepFunction(int second)
{
+#ifdef USE_RTAI
+ sleep(second);
+#else
SLEEP(second);
+#endif
}
/* Ask a slave node to go in operational mode */