Ignore:
Timestamp:
05/30/13 00:37:34 (11 years ago)
Author:
tbretz
Message:
Replaced some SendCommand by SendCommandNB and some DimClient by Dim
File:
1 edited

Legend:

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

    r15263 r16451  
    182182        {
    183183            Message("Rate scan stopped due to timeout.");
    184             Dim::SendCommand("FTM_CONTROL/RESET_CONFIGURE");
     184            Dim::SendCommandNB("FTM_CONTROL/RESET_CONFIGURE");
    185185            return RateScan::State::kConnected;
    186186        }
     
    189189        {
    190190            Message("Rate scan finished.");
    191             Dim::SendCommand("FTM_CONTROL/RESET_CONFIGURE");
     191            Dim::SendCommandNB("FTM_CONTROL/RESET_CONFIGURE");
    192192            return RateScan::State::kConnected;
    193193        }
     
    206206
    207207        const int32_t cmd[2] = { -1, fThreshold };
    208         DimClient::sendCommandNB(fCommand.c_str(), (void*)cmd, 8);
     208        Dim::SendCommandNB(fCommand.c_str(), cmd);
    209209
    210210        return GetCurrentState();
     
    237237
    238238        //Dim::SendCommand("FAD_CONTROL/SET_FILE_FORMAT", uint16_t(0));
    239         Dim::SendCommand("FTM_CONTROL/CONFIGURE", string("ratescan"));
     239        Dim::SendCommandNB("FTM_CONTROL/CONFIGURE", string("ratescan"));
    240240
    241241        Message("Configuration for ratescan started.");
     
    255255        const int32_t data[2] = { -1, fThresholdMin };
    256256
    257         Dim::SendCommand(fCommand, data);
     257        Dim::SendCommandNB(fCommand, data);
    258258
    259259        fThreshold = fThresholdMin;
     
    290290            return GetCurrentState();
    291291
    292         Dim::SendCommand("FTM_CONTROL/RESET_CONFIGURE");
     292        Dim::SendCommandNB("FTM_CONTROL/RESET_CONFIGURE");
    293293        Message("Rate scan manually stopped.");
    294294
Note: See TracChangeset for help on using the changeset viewer.