Update of /cvsroot/playerstage/code/player/server/drivers/mixed/irobot/create
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20589

Modified Files:
        create_comms.c 
Log Message:
Fixed the safe mode

Index: create_comms.c
===================================================================
RCS file: 
/cvsroot/playerstage/code/player/server/drivers/mixed/irobot/create/create_comms.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** create_comms.c      10 Oct 2007 02:32:10 -0000      1.6
--- create_comms.c      17 Oct 2007 18:32:17 -0000      1.7
***************
*** 177,181 ****
    if (fullcontrol)
    {
-     printf("Setting full control\n");
      cmdbuf[0] = CREATE_OPCODE_FULL;
      if(write(r->fd, cmdbuf, 1) < 0)
--- 177,180 ----
***************
*** 186,189 ****
--- 185,199 ----
      r->mode = CREATE_MODE_FULL;
    }
+   else
+   {
+     cmdbuf[0] = CREATE_OPCODE_SAFE;
+     if(write(r->fd, cmdbuf, 1) < 0)
+     {
+       perror("create_init():write():");
+       return(-1);
+     }
+     r->mode = CREATE_MODE_SAFE;
+ 
+   }
  
    usleep(100000);


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to