Changeset 11647


Ignore:
Timestamp:
07/27/11 10:18:50 (13 years ago)
Author:
tbretz
Message:
Allow negative values in diable other patches.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/ftmctrl.cc

    r11644 r11647  
    10691069    }
    10701070
    1071     bool DisableAllPatchesExcept(uint16_t idx)
     1071    bool DisableAllPatchesExcept(int16_t idx)
    10721072    {
    10731073        if (idx>FTM::StaticData::kMaxPatchIdx)
     
    10771077
    10781078        for (int i=0; i<=FTM::StaticData::kMaxPixelIdx; i++)
    1079             data.EnablePixel(i, i/9==idx);
     1079            data.EnablePixel(i, i<0 || i/9==idx);
    10801080
    10811081        CmdSendStatDat(data);
Note: See TracChangeset for help on using the changeset viewer.