Ignore:
Timestamp:
04/11/05 10:58:30 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/candrv/nodedrv.cc

    r4105 r6923  
    416416// queue and no waiting is done, false is returned..
    417417//
    418 bool NodeDrv::WaitForSdo(WORD_t idx, BYTE_t subidx, WORDS_t timeout)
     418bool NodeDrv::WaitForSdo(WORD_t idx, BYTE_t subidx, WORDS_t timeout, bool zombie)
    419419{
    420420    bool rc = fNetwork->WaitForSdo(fId, idx, subidx, fIsZombie?-1:timeout);
    421 
    422     if (!rc)
    423     {
    424         lout << "NodeDrv::WaitForSdo: 0x" << hex << idx << "/" << dec << (int)subidx << " " << GetNodeName() << " --> ZOMBIE!" << endl;
     421    if (rc)
     422        return true;
     423
     424    lout << " + " << GetNodeName() << ": NodeDrv::WaitForSdo: 0x" << hex << idx << "/" << dec << (int)subidx << " --> ZOMBIE! " << MTime() << endl;
     425    if (zombie)
    425426        SetZombie();
    426     }
    427 /*
    428     if (HasError())
    429     {
    430         lout << "NodeDrv::WaitForSdo: HasError 0x" << hex << idx << "/" << dec << (int)subidx << " " << GetNodeName() << " --> ZOMBIE!" << endl;
    431         fIsZombie = kTRUE;
    432     }
    433 */
    434     return fIsZombie ? false : rc;
     427    return false;
    435428}
    436429
Note: See TracChangeset for help on using the changeset viewer.