IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 23, 2006, 5:31:41 PM (20 years ago)
Author:
eugene
Message:

cleanup of timeouts and thread-safety issues, controller comms

File:
1 edited

Legend:

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

    r8184 r8548  
    2020  sprintf (command, "host %s %s", argv[1], argv[2]);
    2121  InitIOBuffer (&buffer, 0x100);
     22
     23  SerialThreadLock ();
    2224  status = ControllerCommand (command, CONTROLLER_PROMPT, &buffer);
     25  SerialThreadUnlock ();
     26
    2327  if (status) gwrite (buffer.buffer, 1, buffer.Nbuffer, GP_LOG);
     28
    2429  FreeIOBuffer (&buffer);
    2530  return (TRUE);
Note: See TracChangeset for help on using the changeset viewer.