IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 11, 2005, 10:37:51 AM (21 years ago)
Author:
eugene
Message:

moved kapa/kii communications to use SendGraphCommand functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/erase.c

    r2843 r3693  
    3131    if (!(strcmp (argv[i], "all"))) {
    3232      for (n = 0; n < 4; n++) {
    33         write (Ximage, "ERAS", 4); /* force Ximage to look for the incoming image */
    34         sprintf (buffer, "OVERLAY %7d ", n);
    35         write (Ximage, buffer, 16);
     33        SendGraphCommand (Ximage, 4, "ERAS");
     34        SendGraphCommand (Ximage, 16, "OVERLAY %7d ", n);
    3635      }
    3736      return (TRUE);
     
    4443    if (!(strcmp (argv[i], "tick"))) n = 4;
    4544   
    46     write (Ximage, "ERAS", 4); /* force Ximage to look for the incoming image */
    47     sprintf (buffer, "OVERLAY %7d ", n);
    48     write (Ximage, buffer, 16);
     45    SendGraphCommand (Ximage, 4, "ERAS");
     46    SendGraphCommand (Ximage, 16, "OVERLAY %7d ", n);
    4947  }
    50 
    5148  return (TRUE);
    52  
    5349}
Note: See TracChangeset for help on using the changeset viewer.