Changeset 10101 for fact/FADctrl/FADBoard.cc
- Timestamp:
- 01/13/11 11:56:40 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/FADctrl/FADBoard.cc
r10099 r10101 220 220 // Check if buffer starts with start_package_flag, remove data if not 221 221 Temp = 0; 222 while (ntohs(Header->start_package_flag) != 0xfb01 && Pos > 0) { 223 memmove(Buffer, Buffer+1, Pos-1); 224 Pos--; 225 Temp++; 226 } 222 while (ntohs(*((unsigned short *) (Buffer+Temp))) != 0xfb01 && Temp<Pos) Temp++; 227 223 if (Temp != 0) { 228 printf("Removed %d bytes because of start_package_flag not found\n", Temp); 224 memmove(Buffer, Buffer+Temp, Pos-Temp); 225 Pos -= Temp; 226 m->PrintMessage("Removed %d bytes because of start_package_flag not found\n", Temp); 229 227 continue; 230 228 }
Note:
See TracChangeset
for help on using the changeset viewer.