IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 19, 2007, 3:18:27 PM (19 years ago)
Author:
eugene
Message:

removed usleep from job and task threads; increased controller timeout; added verbosity; fixed quit controller; added check points to pcontrol thread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pantasks/ControllerOps.c

    r11446 r11898  
    352352  }
    353353 
     354  /* for commands which don't return a prompt, don't look for one */
     355  if (response == NULL) {
     356      return (TRUE);
     357  }
     358
    354359  /* watch for response - wait up to 1 second */
    355360  line = NULL;
     
    456461  sprintf (cmd, "quit");
    457462  InitIOBuffer (&buffer, 0x100);
    458   status = ControllerCommand (cmd, "", &buffer);
    459   FreeIOBuffer (&buffer);
    460 
    461   /* the quit command does not return a prompt, so we always
    462      get an error on the controller here */
     463  status = ControllerCommand (cmd, NULL, &buffer);
     464  FreeIOBuffer (&buffer);
     465
     466  /* the quit command does not return a prompt,
     467     check that the controller exited */
    463468  StopController ();
    464469  return (TRUE);
Note: See TracChangeset for help on using the changeset viewer.