1 Description: Small fix for CloseRobot function to close only if a robot is used
4 ===================================================================
7 @@ -35,7 +35,7 @@ static EventGenRec robotGen =
8 { NULL, 0, FT_read, -1, RobotGenFunc, EM_robot };
10 static int robotProcess;
11 -static FILE *toRobot;
12 +static FILE *toRobot = NULL;
13 static int toRobotFd, fromRobotFd;
15 static char robotBuf[128];
16 @@ -112,10 +112,13 @@ ExtFunc void RobotTimeStamp(void)
17 ExtFunc void CloseRobot(void)
19 RemoveEventGen(&robotGen);
20 - if (robotProcess > 0)
21 - RobotCmd(1, "Exit\n");
25 + if (robotProcess > 0)
26 + RobotCmd(1, "Exit\n");
33 static MyEventType RobotGenFunc(EventGenRec *gen, MyEvent *event)