Changeset 6923 for trunk/MagicSoft/Cosy/candrv/nodedrv.cc
- Timestamp:
- 04/11/05 10:58:30 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/candrv/nodedrv.cc
r4105 r6923 416 416 // queue and no waiting is done, false is returned.. 417 417 // 418 bool NodeDrv::WaitForSdo(WORD_t idx, BYTE_t subidx, WORDS_t timeout )418 bool NodeDrv::WaitForSdo(WORD_t idx, BYTE_t subidx, WORDS_t timeout, bool zombie) 419 419 { 420 420 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) 425 426 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; 435 428 } 436 429
Note:
See TracChangeset
for help on using the changeset viewer.