]> rtime.felk.cvut.cz Git - CanFestival-3.git/blobdiff - examples/DS401_Slave_Gui/TestSlaveGui.cpp
add Exit function to DS401SlaveGui, change StopTimerLoop's arg and add TimerCleanup...
[CanFestival-3.git] / examples / DS401_Slave_Gui / TestSlaveGui.cpp
index 182d18d4244f9e468b1fc5f3b9383b1b2cf90fbd..36b97dc777993fd78099f118ee74d7085f66e504 100644 (file)
@@ -72,10 +72,13 @@ void Exit(CO_Data* d, UNS32 id)
 int
 main_can (s_BOARD SlaveBoard, char *LibraryPath)
 {
-  printf ("Bus name: %s        Freq: %s       Driver: %s\n",
+#if !defined(WIN32) && !defined(__CYGWIN__)
+       TimerInit();
+#endif 
+       
+       printf ("Bus name: %s        Freq: %s       Driver: %s\n",
          SlaveBoard.busname, SlaveBoard.baudrate, LibraryPath);
 
-  TimerInit();
 #ifndef NOT_USE_DYNAMIC_LOADING
   if (LoadCanDriver (LibraryPath) == NULL)
     *textLog << wxT ("Unable to load library\n");