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

    r2843 r3693  
    2727  }
    2828
    29   if (!SelectOverlay (argv[1], &n))
    30     return (FALSE);
    31 
    32   sprintf (buffer, "FILE: %d %s", n, argv[2]);
    33   sprintf (buffer2, "NBYTES: %8d", strlen(buffer));
     29  if (!SelectOverlay (argv[1], &n)) return (FALSE);
    3430 
    3531  if (ISCEL)
    36     write (Ximage, "CSVE", 4); /* force Ximage to look for the incoming image */
     32    SendGraphCommand (Ximage, 4, "CSVE");
    3733  else
    38     write (Ximage, "SAVE", 4); /* force Ximage to look for the incoming image */
    39   write (Ximage, buffer2, 16);
    40   write (Ximage, buffer, strlen(buffer));
    41  
     34    SendGraphCommand (Ximage, 4, "SAVE");
     35
     36  SendGraphMessage (Ximage, "FILE: %d %s", n, argv[2]);
    4237  return (TRUE);
    43 
    4438}
Note: See TracChangeset for help on using the changeset viewer.