- Timestamp:
- 06/09/11 19:43:06 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ftmctrl.cc
r10953 r10960 904 904 905 905 if (idx==-1) 906 for (int i=0; i< FTM::StaticData::kMaxPixelIdx; i++)907 fStaticData.EnablePixel(i dx, enable);906 for (int i=0; i<=FTM::StaticData::kMaxPixelIdx; i++) 907 fStaticData.EnablePixel(i, enable); 908 908 else 909 909 fStaticData.EnablePixel(idx, enable); … … 919 919 return false; 920 920 921 for (int i=0; i< FTM::StaticData::kMaxPixelIdx; i++)921 for (int i=0; i<=FTM::StaticData::kMaxPixelIdx; i++) 922 922 fStaticData.EnablePixel(i, i==idx); 923 923 … … 929 929 bool DisableAllPatchesExcept(uint16_t idx) 930 930 { 931 if (idx> 159)932 return false; 933 934 for (int i=0; i< FTM::StaticData::kMaxPixelIdx; i++)931 if (idx>FTM::StaticData::kMaxPatchIdx) 932 return false; 933 934 for (int i=0; i<=FTM::StaticData::kMaxPixelIdx; i++) 935 935 fStaticData.EnablePixel(i, i/9==idx); 936 936
Note:
See TracChangeset
for help on using the changeset viewer.