Changeset 3693 for trunk/Ohana/src/opihi/cmd.astro/objload.c
- Timestamp:
- Apr 11, 2005, 10:37:51 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.astro/objload.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.astro/objload.c
r3462 r3693 66 66 free (buffer); 67 67 68 write (Ximage, "LOAD", 4); /* force Ximage to look for the incoming image */ 69 sprintf (line, "OVER %9d ", n); 70 write (Ximage, line, 16); 68 SendGraphCommand (Ximage, 4, "LOAD"); 69 SendGraphCommand (Ximage, 16, "OVER %9d ", n); 71 70 71 /** NOTE: modify to use NBYTE **/ 72 72 ALLOCATE (buffer, char, 66000); 73 73 bzero (buffer, 65536); … … 75 75 snprintf (&buffer[Nout*128], 129, "%15s %20.10f %20.10f %20.10f %20.10f ", "BOX", X[i], Y[i], 5.0, 5.0); 76 76 if (Nout == 512) { 77 sprintf (line, "NLINES %7d ", Nout); 78 write (Ximage, line, 16); 77 SendGraphCommand (Ximage, 16, "NLINES %7d ", Nout); 79 78 write (Ximage, buffer, Nout*128); 80 79 bzero (buffer, 65536); … … 84 83 85 84 if (Nout) { 86 sprintf (line, "NLINES %7d ", Nout); 87 write (Ximage, line, 16); 85 SendGraphCommand (Ximage, 16, "NLINES %7d ", Nout); 88 86 write (Ximage, buffer, Nout*128); 89 87 } 90 sprintf (line, "DONE "); 91 write (Ximage, line, 16); 88 SendGraphCommand (Ximage, 16, "DONE"); 92 89 93 90 free (X);
Note:
See TracChangeset
for help on using the changeset viewer.
