]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
robofsm/test/test_actuators.cc: robot_destroy() call moved to main to ensure mechanis...
authorFilip Jares <filipjares@post.cz>
Thu, 23 Apr 2009 16:58:07 +0000 (18:58 +0200)
committerFilip Jares <filipjares@post.cz>
Thu, 23 Apr 2009 16:58:07 +0000 (18:58 +0200)
src/robofsm/test/test_actuators.cc

index 7165ca98efb0382b2a894d4fc0feccc0ee3a8088..fcbd84de5857aa9cce6593028a5684b9ceb62d70 100644 (file)
@@ -149,7 +149,6 @@ void * handle_keyboard(void *)
                }
                fflush(stdout);
        }
-       robot_destroy();
        return NULL;
 }
 
@@ -182,6 +181,7 @@ int main()
         rv = robot_start();
        if (rv) error(1, errno, "robot_start() returned %d\n", rv);
 
+       robot_destroy();
 
        terminal_cleanup(); // reset terminal mode to the original state