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/vcontour.c

    r2598 r3693  
    4545Nline ++; \
    4646if (Nline == 512) { \
    47   sprintf (line, "NLINES  %7d \0", Nline); \
    48   write (Ximage, line, 16); \
     47  SendGraphCommand (Ximage, 16, "NLINES  %7d \0", Nline); \
    4948  write (Ximage, buffer, Nline*128); \
    5049  bzero (buffer, 65536); \
     
    5756Nline ++; \
    5857if (Nline == 512) { \
    59   sprintf (line, "NLINES  %7d \0", Nline); \
    60   write (Ximage, line, 16); \
     58  SendGraphCommand (Ximage, 16, "NLINES  %7d \0", Nline); \
    6159  write (Ximage, buffer, Nline*128); \
    6260  bzero (buffer, 65536); \
     
    263261 
    264262  if (Nline > 0) {
    265     sprintf (line, "NLINES  %7d \0", Nline);
    266     write (Ximage, line, 16);
     263    SendGraphCommand (Ximage, 16, "NLINES  %7d \0", Nline);
    267264    write (Ximage, buffer, Nline*128);
    268265  }
    269266
    270267  free (buffer);
    271   sprintf (line, "DONE \0");
    272   write (Ximage, line, 16);
    273   if (Npix != 1) {
    274     free (matrix);
    275   }
     268  SendGraphCommand (Ximage, 16, "DONE");
     269  if (Npix != 1) free (matrix);
    276270  fprintf (stderr, "\n");
    277271}
Note: See TracChangeset for help on using the changeset viewer.