Ignore:
Timestamp:
01/13/11 11:56:40 (14 years ago)
Author:
ogrimm
Message:
Amplitude calibration information stored in file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/FADctrl/FADBoard.cc

    r10099 r10101  
    220220        // Check if buffer starts with start_package_flag, remove data if not
    221221        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++;
    227223        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);
    229227          continue;
    230228        }
Note: See TracChangeset for help on using the changeset viewer.