Changeset 9132 for trunk/MagicSoft/Cosy/candrv
- Timestamp:
- 08/26/08 12:11:32 (16 years ago)
- Location:
- trunk/MagicSoft/Cosy/candrv
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/candrv/canopen.cc
r8869 r9132 78 78 if (fInterface) 79 79 fInterface->Stop(); 80 } 81 82 Bool_t CanOpen::HasConnection() const 83 { 84 return fInterface ? fInterface->HasConnection() : kFALSE; 80 85 } 81 86 -
trunk/MagicSoft/Cosy/candrv/canopen.h
r8864 r9132 101 101 102 102 void SetInterface(Interface *f) { fInterface=f; } // Set Handle to the interface 103 Bool_t HasConnection() const; 103 104 104 105 // Send a Process Data Object (PDO) to the CanOpen bus -
trunk/MagicSoft/Cosy/candrv/network.cc
r8864 r9132 356 356 bool Network::RebootZombies() 357 357 { 358 if (!HasConnection()) 359 { 360 gLog << warn << "- No connection to network." << endl; 361 return false; 362 } 363 358 364 bool rc = true; 359 365 360 gLog << "- Trying to reboot all Zombies..." << endl;366 gLog << inf2 << "- Trying to reboot all Zombies..." << endl; 361 367 for (int i=0; i<32; i++) 362 368 if (fNodes[i]) … … 364 370 if (!fNodes[i]->Reboot()) 365 371 { 366 gLog << "- Failed to reboot " << fNodes[i]->GetNodeName() << "." << endl;372 gLog << err << "- Failed to reboot " << fNodes[i]->GetNodeName() << "." << endl; 367 373 rc = false; 368 374 } -
trunk/MagicSoft/Cosy/candrv/nodedrv.cc
r8863 r9132 427 427 return true; 428 428 429 gLog << inf2 << " + " << GetNodeName() << ": NodeDrv::WaitForSdo: 0x" << hex << idx << "/" << dec << (int)subidx << " --> ZOMBIE! " << MTime(-1) << endl;429 gLog << inf2 << " + " << GetNodeName() << ": NodeDrv::WaitForSdo: 0x" << hex << idx << "/" << dec << (int)subidx << " "; 430 430 if (zombie) 431 { 432 gLog << "--> ZOMBIE! " << endl; 431 433 SetZombie(); 434 } 435 436 gLog << MTime(-1) << endl; 437 432 438 return false; 433 439 }
Note:
See TracChangeset
for help on using the changeset viewer.