Changeset 3693 for trunk/Ohana/src/opihi/cmd.data/load.c
- Timestamp:
- Apr 11, 2005, 10:37:51 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.data/load.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/load.c
r2843 r3693 55 55 Nline = 0; 56 56 57 write (Ximage, "LOAD", 4); /* force Ximage to look for the incoming image */ 58 sprintf (line, "OVER %9d ", n); 59 write (Ximage, line, 16); 57 SendGraphCommand (Ximage, 4, "LOAD"); 58 SendGraphCommand (Ximage, 16, "OVER %9d ", n); 60 59 61 60 for (n = 0; scan_line (f, line) != EOF;) { … … 123 122 Nline ++; 124 123 if (Nline == 512) { 125 sprintf (line, "NLINES %7d ", Nline); 126 write (Ximage, line, 16); 124 SendGraphCommand (Ximage, 16, "NLINES %7d ", Nline); 127 125 write (Ximage, buffer, Nline*128); 128 126 bzero (buffer, 65536); … … 131 129 } 132 130 133 sprintf (line, "NLINES %7d ", Nline); 134 write (Ximage, line, 16); 131 SendGraphCommand (Ximage, 16, "NLINES %7d ", Nline); 135 132 write (Ximage, buffer, Nline*128); 136 sprintf (line, "DONE "); 137 write (Ximage, line, 16); 133 SendGraphCommand (Ximage, 16, "DONE"); 138 134 139 135 free (buffer);
Note:
See TracChangeset
for help on using the changeset viewer.
